MishkaCmsMigration.Resources.Changes.CancelJobs (Mishka CMS Migration v0.0.1)

Copy Markdown View Source

Cancels a run's jobs that are not done — waiting, scheduled, waiting to be tried again or running — with Oban.cancel_all_jobs/1, in the same transaction as the action, once the run is written. A job AshOban queued for one of the run's triggers would find the run out of the trigger's where when it ran and stop there; cancelling it now leaves nothing waiting in the queue for a run that is over.

update :cancel do
  change MishkaCmsMigration.Resources.Changes.CancelJobs
end