CRM_Queue_Runner - Fix upgrade warnings. Extract disableBackgroundExecution().
authorTim Otten <totten@civicrm.org>
Mon, 13 Jun 2022 19:55:51 +0000 (12:55 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 13 Jun 2022 20:06:45 +0000 (13:06 -0700)
commit1876c74187f6676acf4e067e0b411d3a1f6e5816
tree0b7f2ca7b139a4380a5c834c5deb1674cb853ddc
parentfda805c09e2f57fe1f193d05b7b2f55ba6297b1c
CRM_Queue_Runner - Fix upgrade warnings. Extract disableBackgroundExecution().

This is a revision to #23775.  As before, it prevents a hard error when
upgrading to 5.51.  However, the try-catch produces confusing error messages
in the `CiviCRM.log.*` (ie they indicate a SQL error, but the situation is
actually a normal/expected during upgrade).  This avoids the error messages.

Tested (`r-run`) with `civicrm/upgrade`, `drush civicrm-upgrade-db`, and `cv
upgrade:db` -- for both 5.45=>5.51 and 5.45=>5.49=>5.51.
CRM/Queue/Runner.php