cylc / cylc-flow

Cylc: a workflow engine for cycling systems.
https://cylc.github.io
GNU General Public License v3.0
335 stars 94 forks source link

TaskProxy.jobs: refactor job config #6442

Open oliver-sanders opened 1 month ago

oliver-sanders commented 1 month ago

Separate out the task and job specific data into separate objects and ensure it is persisted correctly.

The TaskProxy object contains some data that is specific to the task, e.g:

However, it also contains some data that is specific to particilar job submissions:

Additionally, the task proxy has two separate objects containing specific attributes of job submissions:

This is a bit of a jumble, and code interfaces can easily end up relying on interfaces which are not stable for the intended purposes (e.g. #6326).

Proposal: