cds icon indicating copy to clipboard operation
cds copied to clipboard

refactor: /queue/workflows

Open yesnault opened this issue 6 years ago • 0 comments
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

yesnault avatar Jun 08 '19 17:06 yesnault