Page MenuHomePhabricator

Follow up on coworker - do some testing with queue_pause & busy on prod
Closed, ResolvedPublic4 Estimated Story Points

Description

Worked locally - less sure on prod!

To Pause

drush @wmff cvapi Setting.create queue_paused=1

To unpause
drush @wmff cvapi Setting.create queue_paused=0

Event Timeline

Dwisehaupt set the point value for this task to 4.Nov 6 2023, 9:15 PM

I might bring this into our current sprint as I have wound up having to deal with coworker stuff - moving to triage for now

@Dwisehaupt I confirmed that this DOES work on prod - ie after running drush @wmff cvapi Setting.create queue_paused=1 then no further queue items were claimed once the claimed item is completed - do we need to update our outage practices?

It's possible to check with this queue

select queue_name, max(release_time), count(*), max(run_count), status FROM civicrm_queue_item i LEFT JOIN civicrm_q
ueue q ON q.name = i.queue_name WHERE release_time IS NOT NULL GROUP BY queue_name;
+---------------------+---------------------+----------+----------------+---------+

queue_namemax(release_time)count(*)max(run_count)status

+---------------------+---------------------+----------+----------------+---------+

omni-snooze2024-02-20 03:07:49116active
omni-snooze/damaged2024-02-19 12:07:331552aborted
user_job_11142024-02-20 03:22:5911active

+---------------------+---------------------+----------+----------------+---------+

& I updated the docs

https://wikitech.wikimedia.org/wiki/Fundraising/Internal-facing/CiviCRM#Queue_processing_(coworker)

XenoRyet set Final Story Points to 2.