Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to notify queue that stalled job is still in progress? #1238

Closed
SishaarRao opened this issue May 10, 2022 · 1 comment
Closed

How to notify queue that stalled job is still in progress? #1238

SishaarRao opened this issue May 10, 2022 · 1 comment

Comments

@SishaarRao
Copy link

Hello! I see in this page in the docs that

When a job is in an active state, i.e., it is being processed by a worker, it needs to continuously update the queue to notify that the worker is still working on the job.

How do we update the queue that the worker is still working on a job?

For context, we have a worker that is doing batched writes to a DB. This could be a long running job depending on how many writes need to be performed. Ideally, in between each batch, we can notify the queue that the worker is still processing.

@manast
Copy link
Contributor

manast commented May 12, 2022

The notification is handled automatically by the worker as long as it is not a CPU intensive operation that keeps the CPU busy during at least 30 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants