Skip to main content

upload_batch

Function upload_batch 

Source
pub async fn upload_batch(
    __arg0: State<AppState>,
    agent: AuthenticatedAgent,
    __arg2: Json<BatchUpload>,
) -> Result<impl IntoResponse, ApiError>
Expand description

Accepts a backlog of days, each written on its own.

One bad day does not sink the batch. An agent holding a day the server will never accept would otherwise be unable to deliver any of its backlog, and would retry the same doomed request forever (ADR 0005).