Skip to content
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

Add skipIfSuccessful option to prevent unnecessary DAG reruns #709

Closed
yohamta opened this issue Nov 15, 2024 · 0 comments · Fixed by #712
Closed

Add skipIfSuccessful option to prevent unnecessary DAG reruns #709

yohamta opened this issue Nov 15, 2024 · 0 comments · Fixed by #712
Labels

Comments

@yohamta
Copy link
Collaborator

yohamta commented Nov 15, 2024

Currently, there's no easy way to prevent a DAG from running if it has already completed successfully since its last scheduled execution. This can lead to unnecessary resource consumption, especially for resource-intensive tasks.

We would like to add a new DAG-level flag called runOnlyOnSchedule skipIfSuccessful. When set to true, Dagu will automatically check the last successful run time against the defined schedule. If the DAG has already run successfully since the last scheduled time, the current run will be skipped.

Related discussion: https://github.com/dagu-org/dagu/discussions/708

@yohamta yohamta added the soon label Nov 15, 2024
@yohamta yohamta changed the title Add runOnlyOnSchedule option to prevent unnecessary DAG reruns Add skipIfSuccessful option to prevent unnecessary DAG reruns Nov 15, 2024
yohamta added a commit that referenced this issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant