Skip to content

Add unique identifier and additional information to tasks  #204

@patmagee

Description

@patmagee

Why

When polling workflow state it is often helpful to monitor the progress of a given task over time. Unfortunately there currently is no guarantee that any identifier present in the task_logs or list returned by the /tasks endpoint and you can never be sure that the task you are looking at is the same one from the preview retrieval

Additionally, Since merging: #177 into the spec the goal is to make individual tasks addressable in the future.

Proposal

  1. We can add a new task_id attribute within the Log object. I prefer this approach since it can be an easy transition to presenting TES information. If we do not want to return TES objects directly, we could also include a link tes_url to the task definition if we ever wanted to go that way.. but that is all for future consideration, adding an ID is minor bridge there
  2. We can add verbage stating the name of the task should be Unique across all runs. IMO this is the inferior option, since the name often has some sort of meaning to the end user. Requiring this attribute to be unique now may require the engine to obscure the original name

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions