Commit graph

13 commits

Author SHA1 Message Date
Bradley Schofield
b60c591f8f Merge branch '1.5.x' into 1.5.x-response-request-models 2024-02-13 09:45:59 +00:00
Jake Barnby
37522ea66f
Merge branch '1.5.x' into fix-catch-exception 2024-02-13 12:47:36 +13:00
Jake Barnby
18f7168160
Merge main 2024-02-12 14:18:19 +13:00
Bradley Schofield
0f3a1c3762 Merge branch 'main' into 1.5.x-response-request-models 2024-02-09 12:36:02 +00:00
Steven Nguyen
4ace8ed027
Replace catching \Exception with \Throwable
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:

} catch (\Exception $e) {
    $deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {

As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
shimon
350d72eb1f updates 2024-02-01 12:21:50 +02:00
shimon
1ef5c9bfcd removed var_dump leftovers 2024-02-01 10:32:40 +02:00
shimon
ca65f4ab2f sync against main 2024-01-31 20:22:49 +02:00
shimon
37316f97ff adding debug output to usage-worker 2024-01-18 18:52:20 +02:00
shimon
d1751565cf refactor usage worker 2023-12-24 20:38:15 +02:00
Damodar Lohani
5e59d73f78 rename stats collection 2023-12-18 10:11:10 +00:00
shimon
ef347f65b8 usage workers 2023-10-25 11:41:42 +03:00
shimon
b7675df9b9 usage workers 2023-10-25 11:38:44 +03:00