🐛 change queue error mode to 'abort'

This commit is contained in:
Marc Koch 2025-04-03 11:48:12 +02:00
parent aa8d25d5ed
commit 60dd218688
Signed by: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 11 additions and 11 deletions

View file

@ -29,21 +29,21 @@ class QueueHelper {
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$this->eventQueue = \Civi::queue( $this->eventQueue = \Civi::queue(
'propeace-mailinglist-event-queue', [ 'propeace-mailinglist-event-queue', [
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$this->emailQueue = \Civi::queue( $this->emailQueue = \Civi::queue(
'propeace-mailinglist-email-queue', [ 'propeace-mailinglist-email-queue', [
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$this->groups = []; $this->groups = [];

View file

@ -129,7 +129,7 @@ function mailinglistsync_civicrm_validateForm($formName, &$fields, &$files, &$fo
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -145,7 +145,7 @@ function mailinglistsync_civicrm_validateForm($formName, &$fields, &$files, &$fo
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -326,7 +326,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -347,7 +347,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -374,7 +374,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -395,7 +395,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -416,7 +416,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback
@ -451,7 +451,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
'type' => 'SqlParallel', 'type' => 'SqlParallel',
'is_autorun' => FALSE, 'is_autorun' => FALSE,
'reset' => FALSE, 'reset' => FALSE,
'error' => 'drop', 'error' => 'abort',
]); ]);
$queue->createItem(new CRM_Queue_Task( $queue->createItem(new CRM_Queue_Task(
// callback // callback