Editor’s Delayed Job Failures
It happens the job could not be processed because the corresponding PublishService id wasn’t found.
First identify the environment, as rule of thumb what is in the alert channel is live environment while alerts in the low severity channel affect test environment.
Then connect to each editor worker pods and identify if it is the defected pod by checking if there are any delayed job:
Delayed::Job.count
Identify the issue by checking the error:
Delayed:Job.last.last_error
If it complains with error such as
Couldn't find PublishService with 'id'= xxx
We can then look into the PublishService DB with
PublishService.all
and check there are no id xxx
PublishService.find(id=xxx)
If there are no PublishService with the corresponding id, we can then delete the delayed job
Delayed::Job.delete(id=xxx)