feat(worker): renew leases and watch an idle queue
This commit is contained in:
1 parent
8dac19c3ea
commit
55bc0529b9
8 files changed
+152
-17
No files matched your search
@@ -76,6 +76,12 @@ lease_action(std::string_view registry_url, std::string_view action_key, std::st
|
||||
lease_queued_action(std::string_view registry_url, std::string_view worker_id,
|
||||
std::int64_t lease_seconds, const RegistryAuth &auth = {});
|
||||
|
||||
// Renews an active lease; returns the new expiry epoch.
|
||||
[[nodiscard]] Void::Result::Result<std::int64_t, Void::Result::Error>
|
||||
renew_action_lease(std::string_view registry_url, std::string_view action_key,
|
||||
std::string_view lease_token, std::int64_t lease_seconds,
|
||||
const RegistryAuth &auth = {});
|
||||
|
||||
[[nodiscard]] Void::Result::Result<void, Void::Result::Error>
|
||||
submit_action_result(std::string_view registry_url, std::string_view action_key,
|
||||
std::string_view lease_token, std::string_view record_json,
|
||||
|
||||
Reference in new issue
Block a user