LightningWeb.RunLive.CancelHelper (Lightning v2.19.0-pre)

View Source

Shared logic for cancelling individual runs from LiveViews.

Summary

Functions

cancel_run(run_id, project_id)

@spec cancel_run(String.t(), Ecto.UUID.t()) ::
  {:ok, Lightning.Run.t()}
  | {:error, :not_found | :not_available | Ecto.Changeset.t()}