Skip to content

Move Ci::Pipeline#update_duration to a worker

It turns out that Ci::Pipeline#update_duration could take a second to run, and this is called inside a lock therefore hurting throughput.

We'll need to move this outside of locks and even better, just move it to a standalone worker and only do this after the pipeline is considered done, instead of doing this each time a build is done.

Slack context