-
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
Broadcast: GraphQLLocatedError 'DurationFloat' object has no attribute 'startswith' #6334
Comments
@ColemanTom, the issue here appears to be the duplicate $ cylc broadcast -s 'execution time limit=PT1M' -n root -n root generic
ERROR: [{'error': {'message': "'DurationFloat' object has no attribute 'startswith'", 'traceback': ["graphql.error.located_error.GraphQLLocatedError: 'DurationFloat' object has no attribute 'startswith'\n"]}}]
$ cylc broadcast -s 'execution time limit=PT1M' -n root generic
Broadcast set:
+ [*/root] execution time limit=PT1M |
* Specifying the same namesapce multiple times can cause cryptic errors. * Closes cylc#6334
The duplicate is for demonstration. You can do any combination of things, just 2+ namespaces setting at least execution time limit, causes this failure. |
* Fix an issue that could cause issues when broadcasting "coerced" configurations to multiple namespaces. * Specifying the same namesapce multiple times doesn't make sense, we should strip duplicates earlier on in the process. * Closes cylc#6334
* Fix an issue that could cause issues when broadcasting "coerced" configurations to multiple namespaces. * Specifying the same namesapce multiple times doesn't make sense, we should strip duplicates earlier on in the process. * Closes cylc#6334
Should be fixed by #6335. If you are able to test this it would help us get it in sooner. |
* Fix an issue that could cause issues when broadcasting "coerced" configurations to multiple namespaces. * Specifying the same namesapce multiple times doesn't make sense, we should strip duplicates earlier on in the process. * Closes cylc#6334
* Fix an issue that could cause issues when broadcasting "coerced" configurations to multiple namespaces. * Specifying the same namesapce multiple times doesn't make sense, we should strip duplicates earlier on in the process. * Closes cylc#6334
As I said, the
It is nothing to do with duplicate namespaces. Cylc (or something) must be resolving the PT9M to be a DurationFloat, which breaks GraphQL. |
I have run with your change, and same error by the way. |
I tried with your example above. Could you post some details of how you reproduced this on the PR so I can investigate, thanks. Note, you will need to restart your workflows with the patched version because it's a server-side fix not a client-side one. |
Ah, I missed updating
So, this looks like it can be closed when #6335 is merged in. |
Thanks for confirming. |
Closed by #6335 (Cylc 8.3.4) |
Description
When broadcasting to set the
execution time limit
I'm seeing the errorERROR: [{'error': {'message': "'DurationFloat' object has no attribute 'startswith'", 'traceback': ["graphql.error.located_error.GraphQLLocatedError: 'DurationFloat' object has no attribute 'startswith'\n"]}}]
. This may be related to #6333 and #6222This happens if you have two or more namespaces and are using a ISO duration item.
Reproducible Example
The namespaces can be the same, it doesn't matter. If you have one namespace, there are no issues, 2+ it fails.
Expected Behaviour
No failure
The text was updated successfully, but these errors were encountered: