This bug is quite a disgusting bug, if you ask me. After a while cron stops running. When tryiong to run it manually I get this error:
Cannot insert duplicate key row in object 'dbo.ultimate_cron_lock' with unique index 'idx_name'. The duplicate key value is (ultimate_cron_serial_launcher_1, 0).

I am using MS SQL Server and PHP7 but I doubt this has anything to do with it.

After a while some other code kicks in to clear all locks from ultimate_cron_lock table and cron starts working again for a while so there is this 1-3 hours window when you can actually debug code.

What I figured out is for some reason multiple records having current = 0 are trying to get into db and DB layer chokes on that with IntegrityConstraintViolationException error but ultimate cron is catching only PDOException.

CommentFileSizeAuthor
#2 2779717-2.patch591 bytesaudriusb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

audriusb created an issue. See original summary.

audriusb’s picture

audriusb’s picture

Issue summary: View changes
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: 2779717-2.patch, failed testing.

audriusb’s picture

not sure if tests fails because of this patch. My patch only contains a new exception catch.

Berdir’s picture

Status: Needs work » Needs review

They didn't fail because of this.

  • Berdir committed b0ab069 on 8.x-2.x authored by audriusb
    Issue #2779717 by audriusb: IntegrityConstraintViolationException
    
Berdir’s picture

Status: Needs review » Fixed

Makes sense, thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.