LemonGateway.Runtime (lemon_gateway v0.1.0)

View Source

Runtime API for submitting and cancelling gateway runs.

Provides the queue-free execution entry point used by the router plus cancellation helpers for active runs by progress message ID or run ID.

Summary

Functions

Cancels a run identified by its progress message ID within a scope.

Cancels a run identified by its run ID. No-op if the run is not found.

Submits a core execution command to the scheduler.

Functions

cancel_by_progress_msg(scope, progress_msg_id)

@spec cancel_by_progress_msg(term(), integer()) :: :ok

Cancels a run identified by its progress message ID within a scope.

cancel_by_run_id(run_id, reason \\ :user_requested)

@spec cancel_by_run_id(binary(), term()) :: :ok

Cancels a run identified by its run ID. No-op if the run is not found.

submit_execution(command)

@spec submit_execution(LemonCore.ExecutionCommand.t()) :: :ok

Submits a core execution command to the scheduler.