🐛 change queue error mode to 'abort'
This commit is contained in:
parent
aa8d25d5ed
commit
60dd218688
2 changed files with 11 additions and 11 deletions
|
@ -29,21 +29,21 @@ class QueueHelper {
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$this->eventQueue = \Civi::queue(
|
||||
'propeace-mailinglist-event-queue', [
|
||||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$this->emailQueue = \Civi::queue(
|
||||
'propeace-mailinglist-email-queue', [
|
||||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
|
||||
$this->groups = [];
|
||||
|
|
|
@ -129,7 +129,7 @@ function mailinglistsync_civicrm_validateForm($formName, &$fields, &$files, &$fo
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -145,7 +145,7 @@ function mailinglistsync_civicrm_validateForm($formName, &$fields, &$files, &$fo
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -326,7 +326,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -347,7 +347,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -374,7 +374,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -395,7 +395,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -416,7 +416,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
@ -451,7 +451,7 @@ function mailinglistsync_civicrm_postCommit(string $op, string $objectName, int
|
|||
'type' => 'SqlParallel',
|
||||
'is_autorun' => FALSE,
|
||||
'reset' => FALSE,
|
||||
'error' => 'drop',
|
||||
'error' => 'abort',
|
||||
]);
|
||||
$queue->createItem(new CRM_Queue_Task(
|
||||
// callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue