misc: updated repeat schedule for auto renewal

This commit is contained in:
Sheen Capadngan
2025-05-23 01:28:53 +08:00
parent 5b200f42a3
commit a40d4efa39

View File

@@ -164,15 +164,16 @@ export const pkiSubscriberQueueServiceFactory = ({
await queueService.stopRepeatableJob(
QueueName.PkiSubscriber,
QueueJobs.PkiSubscriberDailyAutoRenewal,
// { pattern: "0 0 * * *", utc: true },
{ pattern: "*/30 * * * * *", utc: true },
{ pattern: "0 0 * * *", utc: true },
// { pattern: "*/30 * * * * *", utc: true } // for testing
QueueName.PkiSubscriber // just a job id
);
await queueService.queue(QueueName.PkiSubscriber, QueueJobs.PkiSubscriberDailyAutoRenewal, undefined, {
delay: 5000,
jobId: QueueName.PkiSubscriber,
repeat: { pattern: "*/30 * * * * *", utc: true }
// { pattern: "*/30 * * * * *", utc: true } // for testing
repeat: { pattern: "0 0 * * *", utc: true }
});
};