Delete Delayjob Failed

Infos:

  • Used Zammad version: 3.6.x
  • Used Zammad installation source: Centos RPM
  • Operating system: Centos 7.6
  • Browser + version:
    Edge

Expected behavior:

  • Job deleted successfully

Actual behavior:

  • Got error:

irb(main):015:0> Delayed::Job.find(1022709).destroy
Traceback (most recent call last):
2: from (irb):15
1: from config/initializers/delayed_jobs_ensure_active_job_lock_removal.rb:14:in `remove_active_job_lock’
ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn’t find Ticket with ‘id’=1678)

Steps to reproduce the behavior:

  • Use Zammad ticket API to delete ticket, the Delayjob will fail.

Resolved by using

Delayed::Job.find(1022709).delete

WARNING: Dear future user finding this thread

Please be aware that removal of Delayed job is a potential dangerous task that you should never do if you’re unsure what the job is doing. This may lead to data loss!

Use above information with absolute care.

2 Likes

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.