From 3d7f248ee7aa7e5b470cb9bc2fcf76852e798db5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 May 2024 19:12:55 +0300 Subject: Make poll interval for unloaded tenant configurable and rename loaded_timestamp tenant member to unloaded_timestamp --- mod/ci-common.hxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mod/ci-common.hxx') diff --git a/mod/ci-common.hxx b/mod/ci-common.hxx index 45c959a..f332dc2 100644 --- a/mod/ci-common.hxx +++ b/mod/ci-common.hxx @@ -67,8 +67,10 @@ namespace brep // Create an unloaded CI request returning start_result::reference on // success and nullopt on an internal error. Such a request is not started - // until loaded with the load() function below. See also the - // build_unloaded() tenant services notification. + // until loaded with the load() function below. Configure the time + // interval between the build_unloaded() notifications for the being + // created tenant and set the initial delay for the first notification. + // See also the build_unloaded() tenant services notification. // // Note: should be called out of the database transaction. // @@ -77,7 +79,9 @@ namespace brep const basic_mark& warn, const basic_mark* trace, odb::core::database&, - tenant_service&&) const; + tenant_service&&, + duration notify_interval, + duration notify_delay) const; // Load (and start) previously created (as unloaded) CI request. Similarly // to the start() function, return nullopt on an internal error. -- cgit v1.1