Upgrader - Re-assess dispatch policy at the start of every upgrade task
authorTim Otten <totten@civicrm.org>
Wed, 20 Jul 2022 08:11:22 +0000 (01:11 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 20 Jul 2022 20:36:55 +0000 (13:36 -0700)
commitf38bc674055656f447d057ea506bf4183ad4f11a
treef3eb16c66c4411a7d15eea09ad5cef8356ecb2ad
parentffb92029efb7f890bf9057d1f6671364cfd3a65a
Upgrader - Re-assess dispatch policy at the start of every upgrade task

The practical effect should be this:

* All tasks before `doCoreFinish()` run with the `upgrade.main` policy
* All tasks after `doCoreFinish()` run with the `upgrade.finish` policy

Framing this change is a bit delicate because tasks can run in different
ways (eg AJAX queue runner; headless queue-runner; cv queue-runner).  This
should have the same consequence in all runners.
CRM/Upgrade/DispatchPolicy.php
CRM/Upgrade/Incremental/Base.php
Civi/Core/Container.php