-
Notifications
You must be signed in to change notification settings - Fork 18
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 Cylc Clean Support #323
Conversation
For the pool to be able to manage all operations centrally it should be a property of the uiserver (i.e. There's a |
That makes more sense than what I was trying to do. |
Executor is looking good. |
Codecov Report
@@ Coverage Diff @@
## master #323 +/- ##
==========================================
+ Coverage 77.76% 78.36% +0.59%
==========================================
Files 10 11 +1
Lines 1048 1137 +89
Branches 202 217 +15
==========================================
+ Hits 815 891 +76
- Misses 196 207 +11
- Partials 37 39 +2
Continue to review full report at Codecov.
|
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.
I have manually tested this and am getting an error "'types.SimpleNamespace' object has no attribute 'remote_timeout'".
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.
I've had this branch running today, using it to clean both remote and local workflows. I have read the code and run the tests. Working smoothly for me. Thanks @wxtim
except Exception as exc: | ||
return cls._error(exc) | ||
# Hard set remote timeout. | ||
opts.remote_timeout = "600" |
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.
Very minor point but this defaults to 120 in cylc flow. Wonder if it would be worth making them consistent, for documentation purposes mainly.
I think 600 may seem like the better timeout than 120, since nfs and file deletions can perhaps take a while?
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.
In the CLI 120 is the default, but the user can over-ride it.
In the UI I haven't exposed it to the user, so I think it's reasonable to set it longer.
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.
Is there a reason not to expose it to the user? (Happy to leave this as is for now, but perhaps there should be a question issue for how long the timeouts should be on the CLI vs UI and whether to expose it to user on the UI)
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.
I can't remember the reason, but I think @oliver-sanders and I agreed not to - I think it ought to be documented for discussion...
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.
Coming back to this post RC2 release!
One small conflict.
@MetRonnie Tagging you because Oliver is away. |
except Exception as exc: | ||
return cls._error(exc) | ||
# Hard set remote timeout. | ||
opts.remote_timeout = "600" |
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.
Is there a reason not to expose it to the user? (Happy to leave this as is for now, but perhaps there should be a question issue for how long the timeouts should be on the CLI vs UI and whether to expose it to user on the UI)
Co-authored-by: Ronnie Dutta <[email protected]>
Co-authored-by: Ronnie Dutta <[email protected]>
|
||
class Arguments: | ||
workflows = graphene.List(WorkflowID, required=True) | ||
rm = graphene.String( |
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.
Tested it out with rm
and it failed. This should be a list of strings rather than a single string, I think
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.
Yes - according to the documentation it can be a colon-separated list of strings. I've added something to deal.
Co-authored-by: Ronnie Dutta <[email protected]>
Co-authored-by: Ronnie Dutta <[email protected]>
…o add_clean_to_ui2 * 'add_clean_to_ui2' of github.com:wxtim/cylc-uiserver: Update cylc/uiserver/resolvers.py Update cylc/uiserver/resolvers.py
LGTM: Merging with two approvals. |
These changes close #299
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.