From da69b1c89b36666ecd6fcc328955a6b1c08ed19f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 6 Feb 2025 16:46:22 +0200 Subject: Only set queued_timestamp for queued builds in task handler --- mod/mod-build-result.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/mod-build-result.cxx') diff --git a/mod/mod-build-result.cxx b/mod/mod-build-result.cxx index b303386..666e7ef 100644 --- a/mod/mod-build-result.cxx +++ b/mod/mod-build-result.cxx @@ -354,7 +354,9 @@ handle (request& rq, response&) // If we ought to call the tenant_service_build_queued::build_queued() // callback, then also set the package tenant's queued timestamp to - // the current time to prevent the notifications race (see + // the current time to prevent the task handler from picking the build + // and potentially interfering with us by sending its `building` + // notification before we send our `queued` notification (see // tenant::queued_timestamp for details). // if (tsq != nullptr) -- cgit v1.1