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

skipIfSuccessful skips too much #799

Closed
fbartels opened this issue Jan 22, 2025 · 1 comment
Closed

skipIfSuccessful skips too much #799

fbartels opened this issue Jan 22, 2025 · 1 comment
Assignees
Milestone

Comments

@fbartels
Copy link

Reading the documentation at https://dagu.readthedocs.io/en/latest/yaml_format.html#skip-redundant-runs the option should "check[s] if there’s already been a successful run since the last scheduled time. If yes, it skips the execution", but this does not seem to be the case.

I have a dag that has these attributes:

schedule: "0 * * * *"
skipIfSuccessful: true

So from the description it should run every hour and if it has been manually executed in between, would skip the next hourly run. But looking at the logs this rather seems to cause the dag to only every run every second hour.

I have not inspected the code, but could it be that skipIfSuccessful matches on the completion time of a dag and not its starting time?

Using v1.16.0, but I also made the observation with v1.15.0.

@yottahmd
Copy link
Collaborator

yottahmd commented Feb 9, 2025

Thank you so much for reporting the issue. This issue should be fixed in the next release.

@yottahmd yottahmd closed this as completed Feb 9, 2025
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

No branches or pull requests

2 participants