fix(queue-worker): log lock extensions

This commit is contained in:
Gergo Moricz 2024-08-07 19:49:48 +02:00
parent a1c2ee5aa9
commit ab7a35c581

View File

@ -45,6 +45,7 @@ const sq = getScrapeQueue();
const processJobInternal = async (token: string, job: Job) => { const processJobInternal = async (token: string, job: Job) => {
const extendLockInterval = setInterval(async () => { const extendLockInterval = setInterval(async () => {
Logger.info(`🐂 Worker extending lock on job ${job.id}`);
await job.extendLock(token, jobLockExtensionTime); await job.extendLock(token, jobLockExtensionTime);
}, jobLockExtendInterval); }, jobLockExtendInterval);