diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-22 19:34:06 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-05-23 15:40:29 +0300 |
commit | 1dfc20c02d3b1076570a7146581799eab0773d6d (patch) | |
tree | 3d08ca9a4ccb69393dc365b0e96563f8d42b93be /mod/ci-common.hxx | |
parent | 3d7f248ee7aa7e5b470cb9bc2fcf76852e798db5 (diff) |
Replace ci_start::abandon() with ci_start::cancel()
Diffstat (limited to 'mod/ci-common.hxx')
-rw-r--r-- | mod/ci-common.hxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/mod/ci-common.hxx b/mod/ci-common.hxx index f332dc2..8efeb26 100644 --- a/mod/ci-common.hxx +++ b/mod/ci-common.hxx @@ -98,16 +98,18 @@ namespace brep tenant_service&&, const repository_location& repository) const; - // Abandon previously created (as unloaded) CI request. + // Cancel previously created or started CI request. Return the service + // state or nullopt if there is no tenant for such a type/id pair. // // Note: should be called out of the database transaction. // - void - abandon (const basic_mark& error, - const basic_mark& warn, - const basic_mark* trace, - odb::core::database&, - tenant_service&&) const; + optional<tenant_service> + cancel (const basic_mark& error, + const basic_mark& warn, + const basic_mark* trace, + odb::core::database&, + const string& type, + const string& id) const; // Helpers. // |