*/
public function isActive(): bool {
$status = CRM_Core_DAO::getFieldValue('CRM_Queue_DAO_Queue', $this->_name, 'status', 'name', TRUE);
- if ($status === 'active' && \Civi::settings()->get('is_queue_processing_disabled')) {
+ if ($status === 'active' && \Civi::settings()->get('queue_suspended')) {
$status = 'deferred';
}
$event = GenericHookEvent::create([
'description' => ts('How long should HTTP requests through Guzzle application run for in seconds'),
'help_text' => ts('Set the number of seconds http requests should run for before terminating'),
],
- 'is_queue_processing_disabled' => [
- 'name' => 'is_queue_processing_disabled',
+ 'queue_suspended' => [
+ 'name' => 'queue_suspended',
'type' => 'Boolean',
'default' => FALSE,
'html_type' => 'yesno',
'add' => '5.67',
- 'title' => ts('Is background queue processing disabled?'),
+ 'title' => ts('Is background queue temporarily disabled?'),
'is_domain' => 1,
'is_contact' => 0,
'description' => ts('If enabled, CiviCRM will not process background queues.'),