Skip to content

Commit

Permalink
Update SQL reference to aggregated_job_resources_v2 with aggregated_j…
Browse files Browse the repository at this point in the history
…ob_resources_v3. (#341)
  • Loading branch information
milo-hyben authored May 30, 2024
1 parent 1ced860 commit eea6227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch/batch/front_end/front_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ async def _query_batch_jobs_for_billing(request, batch_id):

job_resources_cost_sql = f'''
SELECT agg.job_id, r.resource, agg.`usage`, r.rate * agg.`usage` as total
FROM aggregated_job_resources_v2 agg
FROM aggregated_job_resources_v3 agg
INNER JOIN resources r ON r.resource_id = agg.resource_id
WHERE agg.batch_id = %s AND agg.{job_condition}
'''
Expand Down

0 comments on commit eea6227

Please sign in to comment.