diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-11-05 12:11:22 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-11-05 15:27:37 +0200 |
commit | f8353c612fb655348fdd69ff942a04560d8d55dc (patch) | |
tree | 4d4a18bfe46770c86fe7101c6aed06da15e0e345 /mod/mod-ci.cxx | |
parent | 153f38c301f48dc4c1c363ab81ca5a938fc83a7a (diff) |
Retry database operations on recoverable failures in ci_start class functions
Diffstat (limited to 'mod/mod-ci.cxx')
-rw-r--r-- | mod/mod-ci.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/mod-ci.cxx b/mod/mod-ci.cxx index 8c47bc4..52f4644 100644 --- a/mod/mod-ci.cxx +++ b/mod/mod-ci.cxx @@ -590,7 +590,10 @@ handle (request& rq, response& rs) if (tid.empty ()) throw invalid_request (400, "invalid CI request id"); - if (!cancel (error, warn, verb_ ? &trace : nullptr, reason, *build_db_, tid)) + if (!cancel (error, warn, verb_ ? &trace : nullptr, + reason, + *build_db_, retry_, + tid)) throw invalid_request (400, "unknown CI request id"); // We have all the data, so don't buffer the response content. |