OptimalBits / bull

Premium Queue package for handling distributed jobs and messages in NodeJS.
Other
15.58k stars 1.43k forks source link

Stalled Jobs due to Node Process exit Issue #2759

Closed alihamza1214 closed 1 month ago

alihamza1214 commented 4 months ago

We are experiencing a issue where multiple jobs are being processed at a time but in case if node process or pm2 is restarted then the currently ongoing jobs stays in active state and does not get removed. We have tried on node process startup to find active jobs , move them to failed status using movetoFailed function but this function actually moves to delayed status. and after that the job stays in delayed status and does not process again. Can anyone guide what could be possible reason for that or how to manage such scenarios ?

we are using latest bull version 4.15.1

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.