Skip to content

Commit

Permalink
final sql fix for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jigold committed Aug 30, 2023
1 parent 67eefb1 commit dbf9c8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions batch/batch/driver/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ async def notify_batch_job_complete(db: Database, client_session: httpx.ClientSe
LEFT JOIN batches_cancelled
ON batches.id = batches_cancelled.id
WHERE batches.id = %s AND NOT deleted AND callback IS NOT NULL AND
batches.`state` = 'complete'
GROUP BY batches.id;
batches.`state` = 'complete';
''',
(batch_id,),
'notify_batch_job_complete',
Expand Down

0 comments on commit dbf9c8d

Please sign in to comment.