-
Notifications
You must be signed in to change notification settings - Fork 94
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
cylc pause #4076
Merged
Merged
cylc pause #4076
Changes from 31 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
30b9320
Implement cylc pause
MetRonnie eb44ae5
Tidy
MetRonnie 0f9b0f3
Fix incorrect reference to wallclock time in GraphQL schema
MetRonnie 46fa795
Fix integration tests after introducing cylc pause
MetRonnie d2107a6
Fix functional tests after introducing cylc pause
MetRonnie 05d47a6
Update TUI for cylc pause
MetRonnie 94cd1a9
Slightly hacky fix for functional tests
MetRonnie a04806b
Fix func test after introducing cylc pause
MetRonnie 480f4b1
Fix error pruning flow labels when restarting a paused workflow
MetRonnie df37b52
Fix integration test after introducing cylc pause
MetRonnie cd77f43
Tidy func tests
MetRonnie fec10fd
Fix tricky-to-debug func test after introducing cylc pause
MetRonnie faca543
Address code review RE: cylc pause
MetRonnie 0f88e12
Fix cycle point format in test
MetRonnie 62a712a
Fix hold-release func test and add pause-resume equivalent
MetRonnie 6cde074
Fix func test after introducing cylc pause and add equivalent
MetRonnie 462c6b6
Rename tests as appropriate
MetRonnie 240b8f6
Create function for querying DB in integration tests
MetRonnie 450cc79
Write integration tests for cylc pause
MetRonnie d913cd3
Update changelog
MetRonnie 1080829
Update cylc play cli help
MetRonnie 05a64f6
Unit test the cli arg/opt validation in hold & release
MetRonnie 7578b44
Split hold & release mutations into two each
MetRonnie 1b2d35e
Merge branch 'master' into cylc-pause
MetRonnie 57207d6
Address code review
MetRonnie b5c0d7d
Fix cylc play & stop docstrings
MetRonnie 6778da0
Fix mistake
MetRonnie a8d9dbe
Prevent use of invalid reg or abs path in cylc play
MetRonnie 6b90ddf
Fix mistake in scheduler install logic, plus tidy
MetRonnie 16505e5
Merge branch 'master' into cylc-pause
MetRonnie 637e7b5
Fix tests
MetRonnie 4faa06c
Apply code review suggestion
MetRonnie a1db082
Merge branch 'master' into cylc-pause
MetRonnie bf55479
Improve type safety (i.e. fix mypy errors)
MetRonnie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, what's going on here, is this because of import problems or is it to avoid unnecessary imports?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid unnecessary imports mainly, this will only import the
Scheduler
when mypy is run (needed if usingScheduler
in a type annotation). Also I guess it is likely to lead to circular imports tooThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing we can't do:
In order for a
Scheduler
object to have been passed to theResolvers
instancecylc.flow.scheduler
must already be loaded in memory, even so it would be annoying if we had to write imports like this everywhere to keep mypy happy.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imho writing out the full path like that would be more annoying than doing
if TYPE_CHECKING... import...
. Anyway, hopefully the usefulness of mypy outweighs its annoyances.