Queue durable cellular first-life requests
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (postgres) (push) Failing after 51s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 3m4s
Foundation / checks (client) (push) Canceled after 3m37s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (postgres) (push) Failing after 51s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 3m4s
Foundation / checks (client) (push) Canceled after 3m37s
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "evo/persistence/checkpoint_store.hpp"
|
||||
#include "evo/persistence/life_reservation_store.hpp"
|
||||
#include "evo/network/session_protocol.hpp"
|
||||
#include "evo/server/lifecycle/cellular_batch.hpp"
|
||||
#include "evo/server/ops.hpp"
|
||||
|
||||
#include <chrono>
|
||||
@@ -46,6 +49,17 @@ class CellularRegionHost {
|
||||
[[nodiscard]] std::expected<persistence::PublishedCellularBatch, CellularHostError>
|
||||
publish(const CellularBatch& batch,
|
||||
std::span<const CellularActionRecord> actions = {});
|
||||
// v5 requests allocate durably, then wait for the scheduler to include the exact
|
||||
// reservation in a profile-4 batch. Repeating the request is idempotent.
|
||||
[[nodiscard]] network::PrimitiveLifeOutcome
|
||||
create_primitive_life(const persistence::Uuid& account, std::uint64_t generation,
|
||||
std::uint64_t request);
|
||||
[[nodiscard]] network::PrimitiveLifeOutcome
|
||||
query_primitive_life(const persistence::Uuid& account, std::uint64_t generation,
|
||||
std::uint64_t request);
|
||||
[[nodiscard]] std::span<const CellularTickIntents::Birth> queued_births() const noexcept {
|
||||
return queued_births_;
|
||||
}
|
||||
[[nodiscard]] std::vector<FinalCellularAction> take_finalized_actions();
|
||||
void drain();
|
||||
[[nodiscard]] std::optional<persistence::LeaseGrant> authority() const;
|
||||
@@ -64,6 +78,11 @@ class CellularRegionHost {
|
||||
void upkeep();
|
||||
void resolve();
|
||||
void refresh();
|
||||
void finalize_births(std::span<const CellularTickIntents::Birth> births);
|
||||
void queue_birth(const CellularTickIntents::Birth& birth);
|
||||
[[nodiscard]] network::PrimitiveLifeOutcome query_birth(
|
||||
const persistence::Uuid& account, std::uint64_t generation, std::uint64_t request,
|
||||
bool enqueue);
|
||||
|
||||
CellularHostConfig config_;
|
||||
CellularConnect connect_;
|
||||
@@ -74,6 +93,7 @@ class CellularRegionHost {
|
||||
std::optional<persistence::CommittedCheckpoint> committed_;
|
||||
std::unique_ptr<Pending> pending_;
|
||||
std::vector<FinalCellularAction> finalized_actions_;
|
||||
std::vector<CellularTickIntents::Birth> queued_births_;
|
||||
HostStatus status_{};
|
||||
};
|
||||
} // namespace evo::server
|
||||
|
||||
Reference in New Issue
Block a user