# `MishkaCmsMigration.Resources.Changes.CancelJobs`
[🔗](https://github.com/mishka-group/mishka_cms_migration/blob/v0.0.1/lib/mishka_cms_migration/resources/__changes/cancel_jobs.ex#L5)

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
