Use subsystem prefix on new setting
authorTim Otten <totten@civicrm.org>
Fri, 22 Sep 2023 04:41:15 +0000 (21:41 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 22 Sep 2023 04:41:15 +0000 (21:41 -0700)
CRM/Queue/Queue.php
settings/Core.setting.php

index c8200a80f307b52a1e2eb94ef58855d31f172ba7..008aeb3d0f184f3eadf6de3c83966250f0807d15 100644 (file)
@@ -62,7 +62,7 @@ abstract class CRM_Queue_Queue {
    */
   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([
index 38819a3e013abab8f8116897ba7b935f146139be..26cc623c48d69cd9ac2e965e8ac9dc45876cd8ce 100644 (file)
@@ -1201,13 +1201,13 @@ return [
     '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.'),