Skip to content

Commit

Permalink
n jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jigold committed Nov 13, 2023
1 parent 8cd2d89 commit 9266bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion batch/batch/front_end/query/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def query(self) -> Tuple[str, List[Any]]:
else:
assert self.state == BatchState.SUCCESS
# need complete because there might be no jobs
condition = "(batches.`state` = 'complete' AND n_succeeded = n_jobs)"
condition = "(batches.`state` = 'complete' AND n_succeeded = batches.n_jobs)"
args = []

if isinstance(self.operator, NotEqualExactMatchOperator):
Expand Down
2 changes: 1 addition & 1 deletion batch/batch/front_end/query/query_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def parse_list_batches_query_v1(user: str, q: str, last_batch_id: Optional[int])
args = []
elif t == 'success':
# need complete because there might be no jobs
condition = "(batches.`state` = 'complete' AND n_succeeded = n_jobs)"
condition = "(batches.`state` = 'complete' AND n_succeeded = batches.n_jobs)"
args = []
else:
raise QueryError(f'Invalid search term: {t}.')
Expand Down

0 comments on commit 9266bf5

Please sign in to comment.