mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
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.