feat(worker): lease queued actions in vbs worker
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 3s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 32s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 52s

This commit is contained in:
faumaray committed 2026-12-05 11:36:17 +03:00
1 parent 2776e459e3
commit 452b2e315d
7 files changed
+107 -10

No files matched your search

@@ -71,6 +71,11 @@ register_worker(std::string_view registry_url, std::string_view platform,
lease_action(std::string_view registry_url, std::string_view action_key, std::string_view worker_id,
std::int64_t lease_seconds, const RegistryAuth &auth = {});
// Leases the oldest queued action for a worker (the record is not returned by the queue).
[[nodiscard]] Void::Result::Result<LeasedAction, Void::Result::Error>
lease_queued_action(std::string_view registry_url, std::string_view worker_id,
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,