Skip to content

Commit

Permalink
Fix invocation step_job_summary for new collections
Browse files Browse the repository at this point in the history
Fixes #18401
  • Loading branch information
mvdbeek committed Jun 14, 2024
1 parent d0ebd5a commit a245bd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/galaxy/managers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,10 @@ def summarize_jobs_to_dict(sa_session, jobs_source):
"id": jobs_source.id,
"populated_state": populated_state,
"model": "ImplicitCollectionJobs",
"states": {},
}
if populated_state == "ok":
# produce state summary...
states = {}
join = model.ImplicitCollectionJobs.table.join(
model.ImplicitCollectionJobsJobAssociation.table.join(model.Job)
)
Expand All @@ -846,8 +846,7 @@ def summarize_jobs_to_dict(sa_session, jobs_source):
.group_by(model.Job.state)
)
for row in sa_session.execute(statement):
states[row[0]] = row[1]
rval["states"] = states
rval["states"][row[0]] = row[1]
return rval


Expand Down

0 comments on commit a245bd9

Please sign in to comment.