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
Description
Details
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Pseudocode for a change to error handling | Eileen | wikimedia/fundraising/crm | master | +205 -165 | |
| More CRM_Core_Exception error handling up to handleError() | Eileen | wikimedia/fundraising/crm | master | +87 -40 |
Related Objects
- Mentioned In
- T415697: Fundraising Sprint A Priorities
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
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()
Change #1126703 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] More CRM_Core_Exception error handling up to handleError()
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?
Change #1034207 abandoned by Eileen:
[wikimedia/fundraising/crm@master] Pseudocode for a change to error handling