canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Delayed jobs are not being picked up by the workers

Open maksimf opened this issue 2 years ago • 2 comments

Summary:

I have a few hundred tasks, just sitting there, not being picked up by any of the workers. I did check that:

  • tasks are in the same queue that the workers are launched for (canvas_queue)
  • workers are indeed spawned (via ps aux)

photo_2023-02-07 22 04 55

Steps to reproduce:

  1. Perform any action which triggers a delayed job, like inviting new user

Expected behavior:

Email is sent

Actual behavior:

Email job is queued, but the task is not picked up by the worker (0/1 attempts)

maksimf avatar Feb 07 '23 22:02 maksimf

I have updated all the stuck jobs with locked_by = 'RANDOM STRING' and locked_at = NOW(), after that I have removed all those jobs and this, somehow, made jobs being picked up again. But I would still want to know why this might have happened

maksimf avatar Feb 25 '23 00:02 maksimf

Hi, I'm running into this same exact issue right now, any chance you could post a more detailed explanation of how you fixed this? Would be much appreciated

KarimElagamy avatar Jan 05 '24 18:01 KarimElagamy