passing information among different tasks #620
Replies: 2 comments 2 replies
-
Hi @uturuncoglu, thanks for starting this discussion. I have some questions:
Probably not: The design of the UW drivers is such that they are expected to get any needed information from the config that the driver is instantiated with, which is also schema-checked for correctness.
I think this is the right approach. Depending on your workflow, and especially whether it processes any tasks in parallel, you might need to consider making a copy of the main config and editing only the copy, perhaps in the run directory for a specific task. Those are just some initial thoughts. We'd be happy to look at code, too, and try to help come up with good ideas. |
Beta Was this translation helpful? Give feedback.
-
Hi @uturuncoglu. I just wanted to let you know that I merged a small PR updating the |
Beta Was this translation helpful? Give feedback.
-
I wonder if there is a way of updating information read from the config.yaml file. In my case, workflow has a task that downloads forcing data and I need to point those data files when I am creating cdeps stream namelist file (defined by
stream_data_files
). This is could be also used to update other informations such as ESMF Mesh file (stream_mesh_file
) etc. Maybe it could be another way to pass information between the tasks but I am not sure since current implementation ofcdeps.atm_stream()
does not accept any arguments to use. Do we need to extend it to accept options? or maybe dynamically updating (or adding entries) toconfig.yaml
would be the option. Not sure since then the result config.yaml could end up a different one since it is dynamically changing along the way and it might not be the safest way and might be hard to debug in case of any issue. Anyway, any suggestion might help.Beta Was this translation helpful? Give feedback.
All reactions