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

[dy] Add always on schedule interval #3611

Merged
merged 3 commits into from
Oct 2, 2023
Merged

[dy] Add always on schedule interval #3611

merged 3 commits into from
Oct 2, 2023

Conversation

dy46
Copy link
Contributor

@dy46 dy46 commented Sep 27, 2023

Description

User request.

Add @always_on schedule interval for scheduled triggers. Always on schedules will trigger the new pipeline run as soon as the latest pipeline run is completed. Basically, it should always have 1 pipeline run in progress at all times.

I also replaced schedule interval strings with constants in this PR.

How Has This Been Tested?

  • Tested locally
  • Unit test

Screenshot 2023-09-27 at 3 46 08 PM

Checklist

  • The PR is tagged with proper labels (bug, enhancement, feature, documentation)
  • I have performed a self-review of my own code
  • I have added unit tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

cc:

@dy46 dy46 merged commit 194ecf4 into master Oct 2, 2023
6 checks passed
@dy46 dy46 deleted the dy--add_always_on branch October 2, 2023 17:02
return True
else:
return self.last_pipeline_run_status not in [
PipelineRun.PipelineRunStatus.RUNNING,
Copy link
Member

Choose a reason for hiding this comment

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

@dy46 Let's include the CANCELLED status here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wangxiaoyou1993 if we add cancelled here, there won't be a way for the user to restart their always on trigger after cancelling a run

@wangxiaoyou1993 wangxiaoyou1993 mentioned this pull request Oct 3, 2023
6 tasks
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.

None yet

2 participants