mirror of https://github.com/certd/certd
fix: 修复偶发性cname一直验证超时的bug
parent
bcfac02c96
commit
d2ce72e4aa
|
@ -193,7 +193,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||||
startTime: new Date().getTime(),
|
startTime: new Date().getTime(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
let ttl = 15 * 60 * 1000;
|
let ttl = 5 * 60 * 1000;
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
ttl = 30 * 1000;
|
ttl = 30 * 1000;
|
||||||
}
|
}
|
||||||
|
@ -233,6 +233,7 @@ export class CnameRecordService extends BaseService<CnameRecordEntity> {
|
||||||
logger.warn(`cname验证超时,停止检查,${bean.domain} ${testRecordValue}`);
|
logger.warn(`cname验证超时,停止检查,${bean.domain} ${testRecordValue}`);
|
||||||
clearInterval(value.intervalId);
|
clearInterval(value.intervalId);
|
||||||
await this.updateStatus(bean.id, 'timeout');
|
await this.updateStatus(bean.id, 'timeout');
|
||||||
|
cache.delete(cacheKey);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
import { AbstractTaskPlugin, IsTaskPlugin, pluginGroups, RunStrategy, TaskInput } from '@certd/pipeline';
|
||||||
import { CertInfo } from '@certd/plugin-cert';
|
import { CertInfo } from '@certd/plugin-cert';
|
||||||
import { AbstractPlusTaskPlugin, createRemoteSelectInputDefine } from '@certd/plugin-plus';
|
import { createRemoteSelectInputDefine } from '@certd/plugin-plus';
|
||||||
import { TencentSslClient } from '../../lib/index.js';
|
import { TencentSslClient } from '../../lib/index.js';
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: 'DeployCertToTencentCosPlugin',
|
name: 'DeployCertToTencentCosPlugin',
|
||||||
title: '部署证书到腾讯云COS',
|
title: '部署证书到腾讯云COS',
|
||||||
needPlus: true,
|
needPlus: false,
|
||||||
icon: 'svg:icon-tencentcloud',
|
icon: 'svg:icon-tencentcloud',
|
||||||
group: pluginGroups.tencent.key,
|
group: pluginGroups.tencent.key,
|
||||||
desc: '部署到腾讯云COS源站域名证书【注意:很不稳定,需要重试很多次偶尔才能成功一次】',
|
desc: '部署到腾讯云COS源站域名证书【注意:很不稳定,需要重试很多次偶尔才能成功一次】',
|
||||||
|
@ -16,7 +16,7 @@ import { TencentSslClient } from '../../lib/index.js';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export class DeployCertToTencentCosPlugin extends AbstractPlusTaskPlugin {
|
export class DeployCertToTencentCosPlugin extends AbstractTaskPlugin {
|
||||||
/**
|
/**
|
||||||
* AccessProvider的id
|
* AccessProvider的id
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue