-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAWB-662 new workflow queue status endpoint #420
Conversation
@@ -304,6 +305,8 @@ object WorkflowStatuses { | |||
|
|||
def withName(name: String): WorkflowStatus = { | |||
name match { | |||
case "Queued" => Queued |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@helgridly this change requested by @abaumann
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put this request into the queue doc - I want to settle on what we are going to call these states
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you link the doc? I've lost track of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage increased (+0.03%) to 78.166% when pulling d18d885ac4f3b041b518250b7d284bf74c4aefd9 on jt_GAWB-662 into 1bac55e on develop. |
@@ -1088,6 +1088,28 @@ paths: | |||
- openid | |||
- profile | |||
'/api/workflow_queue_status': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use a consistent style for URLs. I filed GAWB-673 for this, but I wouldn't complain if you changed this to workflow-queue-status
in the meantime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to change it to that. Curious what others think too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rawls seems to consistently use camelCase, from what I can tell from Swagger
If this is for babyQ, I've created branch |
👍 |
It is for PorQ/BBQ but I think it's safe to go to develop as well, as it doesn't change any functionality. |
Coverage increased (+0.03%) to 78.166% when pulling bf28e0858c93ac857c66d4731c2ea3bdfe2426b3 on jt_GAWB-662 into 1bac55e on develop. |
findQueuedAndRunningWorkflows.result.map { recs => | ||
val grouped = recs.groupBy { | ||
// lump all of the workflows currently being handled by Cromwell into "Active" | ||
case runningRecord if WorkflowStatuses.runningStatuses.map(_.toString).toSet contains runningRecord.status => "Active" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we doing this lumping here? I think this should be a straight group by in the db and let the caller (ui?) figure out how they want to lump.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's convenient to do so in Rawls because we have statuses partitioned by Queued / Running / Terminal in WorkflowStatuses
.
I can see how this would be more extensible if we simply included every status and let callers/UI handle partitioning. In that case I'd modify this further to include the Terminal statuses as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
terminal statuses are not particularly informative of anything, will be large and may make the query slower. The only one I care about is the last one though. If the query is not slower then I don't really care.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lumping removed
Coverage increased (+0.06%) to 78.204% when pulling 06eb6fa0a06eba6bf2b05722f275b492adbbef61 on jt_GAWB-662 into 1bac55e on develop. |
+1 |
Changes Unknown when pulling 8dc2890 on jt_GAWB-662 into * on develop*. |
Rawls portion of GAWB-662. Needs Orch + UI as well.