Skip to main content

file_or_repeat

Function file_or_repeat 

Source
fn file_or_repeat(
    state: &AppState,
    spec: &TaskSpec,
    drone_id: &str,
) -> Result<Value, String>
Expand description

File the task, or add a line to the open one with the same key. Synchronous end to end, so the lock covers the lookup and the insert and is never held across an await.