Page MenuHomePhabricator

Consolidate error handling in queues
Closed, ResolvedPublic8 Estimated Story Points

Description

We currently have a crazy quantity of try-catches that have evolved over time in our efforts - I have some thoughts about consolidation which I will put up as a pseudo-code - ie here (not sure how readable it is as I meddled with indentation https://gerrit.wikimedia.org/r/c/wikimedia/fundraising/crm/+/1034207

Event Timeline

Change #1034207 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Pseudocode for a change to error handling

https://gerrit.wikimedia.org/r/1034207

Dwisehaupt set the point value for this task to 8.Aug 26 2024, 8:14 PM

Change #1126703 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] More CRM_Core_Exception error handling up to handleError()

https://gerrit.wikimedia.org/r/1126703

Change #1126703 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] More CRM_Core_Exception error handling up to handleError()

https://gerrit.wikimedia.org/r/1126703

We got a failmail on 2025-04-08: Fail Mail (civi1002) run-job: Donations queue consume failed with code 1

2025-04-08 16:29:04,944 ERROR civicrm.wmf.ERROR: WMFQueue: Message not saved due to database load: DB Error: deadlock {"message":"DB Error: deadlock"}
2025-04-08 16:29:04,946 ERROR
2025-04-08 16:29:04,947 ERROR In Error.php line 986:
2025-04-08 16:29:04,947 ERROR
2025-04-08 16:29:04,947 ERROR [Civi\Core\Exception\DBQueryException]
2025-04-08 16:29:04,947 ERROR DB Error: deadlock
2025-04-08 16:29:04,947 ERROR
2025-04-08 16:29:04,947 ERROR
2025-04-08 16:29:04,947 ERROR Exception trace:
2025-04-08 16:29:04,947 ERROR at /srv/org.wikimedia.civicrm/drupal/sites/all/modules/civicrm/CRM/Core/Error.php:986

I think we did something to handle these, @Eileenmcnaughton am I remembering this correctly?

We think this is handled, but if it comes back we can make a new phab.

XenoRyet set Final Story Points to 4.

Change #1034207 abandoned by Eileen:

[wikimedia/fundraising/crm@master] Pseudocode for a change to error handling

https://gerrit.wikimedia.org/r/1034207