feat(worker): renew leases and watch an idle queue
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 5s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s

This commit is contained in:
faumaray committed 2026-12-05 12:03:46 +03:00
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,