Skip to content

Commit

Permalink
log current queue tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerkesni committed Oct 6, 2023
1 parent f0a661e commit ecc6c67
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ class LifecycleBucketProcessor {
}
});

setInterval(() => {
const tasks = this._internalTaskScheduler.workersList().map(task => JSON.stringify(task.data.value));
this._log.debug('current tasks in queue', {
method: 'LifecycleBucketProcessor',
tasks,
});
}, (process.env.WORKERS_LOG_DELAY || 20000));

this._circuitBreakerConfig = updateCircuitBreakerConfigForImplicitOutputQueue(
this._lcConfig.bucketProcessor.circuitBreaker,
this._lcConfig.objectProcessor.groupId,
Expand Down

0 comments on commit ecc6c67

Please sign in to comment.