Skip to content

Commit

Permalink
Fix for /api/v1alpha/batches/completed, picking only ROOT_JOB_GROUP w…
Browse files Browse the repository at this point in the history
…hen collecting batches and jobs. (#345)

* Fix for /api/v1alpha/batches/completed, picking only ROOT_JOB_GROUP when collecting batches and jobs.

* Removing DISTINCT
  • Loading branch information
milo-hyben authored Jul 25, 2024
1 parent d65f84e commit b3e6ad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion batch/batch/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,13 @@ async def _query_job_group_jobs(
@auth.authenticated_users_only()
async def get_completed_batches_ordered_by_completed_time(request, userdata):
db = request.app['db']
where_args = [userdata['username']]
where_args = [userdata['username'], ROOT_JOB_GROUP_ID]
wheres = [
'billing_project_users.`user` = %s',
'billing_project_users.billing_project = batches.billing_project',
'batches.time_completed IS NOT NULL',
'NOT deleted',
'job_groups.job_group_id = %s',
]

limit = 100
Expand Down

0 comments on commit b3e6ad8

Please sign in to comment.