Files
openfoodnetwork/spec/models/spree
Pau Perez 74a8b3038a Split ConfirmOrderJob to avoid blocking a worker
This unties this two email notifications so that they are picked up by
a DJ worker independently. This should avoid the blocking the worker experiences (remember we
still have a single one in all instances) when waiting between the two
deliveries. See the flamegraph:
https://app.datadoghq.com/apm/traces?end=1622015605459&paused=true&query=env%3Aproduction%20service%3Adelayed_job%20operation_name%3Adelayed_job%20resource_name%3AConfirmOrderJob%20%40duration%3A%3E%3D5s&start=1622009898303&streamTraces=true&trace=AQAAAXmngbg_woqc_QAAAABBWG1uZ2IwVkFBRHVDbWJkN25QTUVuY28&traceID=2916038355421570548&spanID=2005781139590273685.

Overall, both operations may take longer but other jobs can be processed
in between. Also, if any of the two fails, the other won't be affected.
2021-06-01 11:43:00 +02:00
..
2021-04-26 10:15:13 +02:00
2020-08-07 14:03:15 +01:00
2021-02-06 11:15:48 +00:00
2020-08-06 01:41:28 +01:00
2020-09-05 16:38:36 +01:00
2020-10-09 22:11:34 -05:00
2020-09-05 16:43:27 +01:00
2021-04-12 18:26:18 +02:00
2021-04-15 09:43:22 -07:00