Skip to content

Support for canceling a run currently running when another flow gets queued with the same parameters #17857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cbelsole opened this issue Apr 18, 2025 · 0 comments
Labels
enhancement An improvement of an existing feature

Comments

@cbelsole
Copy link
Contributor

Describe the current behavior

Currently, this is not possible to my knowledge.

Describe the proposed behavior

If a flow run gets picked up, it should cancel any flow run currently executing with the same parameters deduping the queue.

Example Use

We ingest files which are updated when changed if there are rapid changes over time (even when we debounce them on our end) this can result in multiple flows with the same parameters in our pipeline. When this happens, prefect could cancel the currently running flow and enqueue the new one.

Additional context

CC @gabcoyne

@cbelsole cbelsole added the enhancement An improvement of an existing feature label Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant