Skip to content

Commit

Permalink
Add TODO for invocation state summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Jan 28, 2021
1 parent b49dffe commit 864c8e4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/api/workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,50 @@ class WorkflowInvocation extends Common.Model {
}
}

//TODO add support for /api/invocation/<id>/step_jobs_summary
/*
0
id "d158a6cce97e3331"
populated_state "ok"
model "ImplicitCollectionJobs"
states
error 4
1
id "c55cc6ad09407e92"
populated_state "ok"
model "ImplicitCollectionJobs"
states
paused 4
2
id "43cee75e648fc2b4"
populated_state "ok"
model "ImplicitCollectionJobs"
states
paused 4
3
id "41454a2d6e8db7f3"
populated_state "ok"
model "ImplicitCollectionJobs"
states
paused 4
*/

/**
* Count the number of states in steps
* @returns {Object<Number>} Mapping of state name to count
*/
states() {
//TODO use /api/invocation/<id>/jobs_summary
/*
id "bdbb49fafe32786f"
model "WorkflowInvocation"
states
ok 3
error 5
paused 20
populated_state "ok"
*/

if (!this.steps || !this.steps.length) {
this.steps = WorkflowInvocationStep.query().where('workflow_invocation_id', this.id).get();
}
Expand Down

0 comments on commit 864c8e4

Please sign in to comment.