Skip to content

Conversation

@keshav-space
Copy link
Member

@keshav-space keshav-space commented Jan 9, 2026

Set run_once class variable to True to run pipeline only once.

Screenshot from 2026-01-14 17-53-30

Note

  • To rerun onetime pipeline, reset is_active to True via a migration, pipeline will run one more time and then deactivate.
  • To convert a onetime pipeline to a regular pipeline, set the run_once class variable to False and reset is_active field to True via a migration.

Resolves #2005

Signed-off-by: Keshav Priyadarshi <git@keshav.space>
- To rerun onetime pipeline, reset `is_active` to `True` via a migration,
    pipeline will run one more time and then deactivate.
- To convert a onetime pipeline to a regular pipeline,
    set the `run_once` class variable to `False` and reset
    the `is_active` field to `True` via a migration.

Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
@keshav-space keshav-space self-assigned this Jan 9, 2026
@keshav-space keshav-space changed the title Ad support running pipeline only once Add support running pipeline only once Jan 9, 2026
@keshav-space keshav-space changed the title Add support running pipeline only once Support running pipeline only once Jan 9, 2026
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
Copy link
Contributor

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@keshav-space keshav-space merged commit 0318583 into main Jan 16, 2026
10 checks passed
@keshav-space keshav-space deleted the onetime_pipeline branch January 16, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support running pipeline only once

2 participants