chore: console log worker run status

This commit is contained in:
karishmas6
2024-10-07 01:28:48 +05:30
parent 7b21ce4cdc
commit c714d6df5d

View File

@@ -38,6 +38,8 @@ worker.on('failed', async (job: any, err) => {
logger.log(`error`, `Job ${job.id} failed for ${job.data.fileName}_${job.data.runId}:`, err);
});
console.log('Worker is running...');
async function jobCounts() {
const jobCounts = await workflowQueue.getJobCounts();
console.log('Jobs:', jobCounts);