cds
cds copied to clipboard
refactor: /queue/workflows
trafficstars
/queue/workflows returns all informations about all jobs / steps / parameter...
To prevent the marshalling time from increasing too quickly with the number of jobs in the queue, the GET on /queue/workflow should return a new object containing only the necessary information.
So, /queue/workflow should return []WorkflowNodeJobRunQueue with WorkflowNodeJobRunQueue containing :
j.ID (WorkflowNodeJobRun.ID)
j.ExecGroups,
j.Job.Action.Requirements,
j.SpawnAttempts,
j.WorkflowNodeRunID,
WorkflowRunHeaders,
Name,
BookedBy
duration
status
cds.project: project key
cds.workflow workflow name
cds.node: node name
cds.run: run
cds.triggered_by.username