-
Notifications
You must be signed in to change notification settings - Fork 93
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-insert: prevent insertion at invalid cycle point. #2107
cylc-insert: prevent insertion at invalid cycle point. #2107
Conversation
467456e
to
7908ed2
Compare
if not isinstance(items, list): | ||
items = [items] | ||
if stop_point_string == "None": | ||
stop_point_string = None | ||
return self._put("insert_tasks", (items,), | ||
{"stop_point_string": stop_point_string}) | ||
{"stop_point_string": stop_point_string, | ||
"no_check": True if no_check == 'True' else False}) |
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.
Should be sufficient to do: "no_check": no_check == 'True'
.
But then why would no_check
be a 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.
Objects serialised for transmission on the comms layer? See line 154 in the diff above where stop_point_string
is treated in a similar way.
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.
OK. I forgot it was done by urllib.urlencode
not json.dumps
.
7908ed2
to
8daa468
Compare
8daa468
to
525208d
Compare
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.
Good, tested.
(I guess you just rebased the branch; I'll wait on Travis CI before merging...) |
Huh, Travis CI doesn't like |
|
Passes in my environment. |
(I have bundled a change in #2100 to improve the stability of |
In that case, merging now... |
Close #1239
Don't insert a task unless its cycle point is on one of the tasks sequences. Over-ridable by the
--no-check
option.