mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 10:28:22 +00:00
feat: addressed review comments
This commit is contained in:
@@ -64,6 +64,7 @@ export const dynamicSecretLeaseQueueServiceFactory = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const unsetLeaseRevocation = async (leaseId: string) => {
|
const unsetLeaseRevocation = async (leaseId: string) => {
|
||||||
|
await queueService.stopJobById(QueueName.DynamicSecretRevocation, leaseId);
|
||||||
await queueService.stopJobByIdPg(QueueName.DynamicSecretRevocation, leaseId);
|
await queueService.stopJobByIdPg(QueueName.DynamicSecretRevocation, leaseId);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -169,6 +170,7 @@ export const dynamicSecretLeaseQueueServiceFactory = ({
|
|||||||
if (error instanceof DisableRotationErrors) {
|
if (error instanceof DisableRotationErrors) {
|
||||||
if (jobId) {
|
if (jobId) {
|
||||||
await queueService.stopRepeatableJobByJobId(QueueName.DynamicSecretRevocation, jobId);
|
await queueService.stopRepeatableJobByJobId(QueueName.DynamicSecretRevocation, jobId);
|
||||||
|
await queueService.stopJobByIdPg(QueueName.DynamicSecretRevocation, jobId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// propogate to next part
|
// propogate to next part
|
||||||
@@ -187,8 +189,8 @@ export const dynamicSecretLeaseQueueServiceFactory = ({
|
|||||||
await $dynamicSecretQueueJob(job.name, job.id, job.data);
|
await $dynamicSecretQueueJob(job.name, job.id, job.data);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
workerCount: 2,
|
workerCount: 5,
|
||||||
pollingIntervalSeconds: 30
|
pollingIntervalSeconds: 1
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -198,8 +200,8 @@ export const dynamicSecretLeaseQueueServiceFactory = ({
|
|||||||
await $dynamicSecretQueueJob(job.name, job.id, job.data);
|
await $dynamicSecretQueueJob(job.name, job.id, job.data);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
workerCount: 2,
|
workerCount: 1,
|
||||||
pollingIntervalSeconds: 5
|
pollingIntervalSeconds: 1
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user