pub struct RemoteCoordinatorClient { /* private fields */ }Expand description
HTTP-backed coordinator for split deployments (no local tick/worker loops).
Targets the chronon-axum API at {base_url}/api/chronon/*. Pair with
DeploymentShape::RemoteClient on the worker host.
Implementations§
Source§impl RemoteCoordinatorClient
impl RemoteCoordinatorClient
Sourcepub fn new(base_url: impl Into<String>) -> Self
pub fn new(base_url: impl Into<String>) -> Self
base_url is trimmed of trailing slashes; timeout from CHRONON_REMOTE_HTTP_TIMEOUT_MS (default 3s).
Sourcepub async fn upsert_job(&self, job: Job) -> Result<()>
pub async fn upsert_job(&self, job: Job) -> Result<()>
POST /jobs/upsert with fields from job.
Sourcepub async fn list_jobs(&self) -> Result<Vec<JobSummary>>
pub async fn list_jobs(&self) -> Result<Vec<JobSummary>>
GET /jobs and return non-sensitive job summaries.
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteCoordinatorClient
impl !UnwindSafe for RemoteCoordinatorClient
impl Freeze for RemoteCoordinatorClient
impl Send for RemoteCoordinatorClient
impl Sync for RemoteCoordinatorClient
impl Unpin for RemoteCoordinatorClient
impl UnsafeUnpin for RemoteCoordinatorClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more