-
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
Should cylc config be able to report the configuration being used by a running workflow? #4756
Comments
Good point. I think we should, ideally. However, we could have another file in the run-directory that records the config of the (latest) running scheduler, rather than literally query the scheduler. |
|
I think |
I don't think Can we bump this to 8.x? |
We could potentially write every config change to disk, for provenance reasons. Short of that though, getting current active config via GraphQL would be fine IMO. |
I don't this is super urgent, I'll bump it. |
Given a workflow id,
cylc config
prints the "workflow configuration" (according to the help text).But what does that really mean?
What (I think) it means is that it parses whatever configuration files it finds in the workflow directory.
However, this may be very different from the configuration in use by a running workflow because:
a) the config may have been changed by reinstall but not reloaded
b) the config may have been altered via cylc play options (
--set
#4740,--fcp
, etc)The parsed config file is recorded in the
log/flow-config
directory.This includes the result of any
--set
options although note that it still doesn't reflect any changes made by--fcp
for example.(See also #4755)
The Rose fcm make built-in app uses
cylc config
to check for the existence of "fcm_make2" tasks.In theory it could get the wrong result because it is not actually querying the configuration in use.
In practise this is very unlikely and not worth worrying about for this legacy use case.
However, it does raise the question: do we need the ability to query the configuration being used by a running workflow?
The text was updated successfully, but these errors were encountered: