-
Is there a way to tell rqueue to reset the timeout for a job. For example when we have jobs where we don't know how long they will take. Is there a way to tell rqueue not to give this task to another listener because im still working on it. I thought that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
May I know whats the reason that you don't know how much time this job will take?
You're absolutely right, it's for a different use case, this just tells that a job is running and displays job's progress/status in the dashboard, can be used for loader/progress purpose. |
Beta Was this translation helpful? Give feedback.
-
@Homer1991 Usage job.updateVisibilityTimeout(Duration.ofSeconds(100)); Decrease visibility timeout by 100 seconds job.updateVisibilityTimeout(Duration.ofSeconds(-100)); |
Beta Was this translation helpful? Give feedback.
@Homer1991
Version 2.8.0 has been released, job has new apis to increase/decrease the visibility timeout.
Usage
Increase visibility timeout by 100 seconds
Decrease visibility timeout by 100 seconds