Skip to content

Commit

Permalink
change sign
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 21, 2025
1 parent 3c5118c commit 8782fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceprod/materialization/materialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def run_once(self, only_dataset=None, set_status=None, num=10000, dryrun=F
logger.info('num_tasks: %d', num_tasks)
logger.info('tasks_per_job: %d', dataset['tasks_per_job'])
for job_tmp_index in range(job_index-1, -1, -1):
if job_index * dataset['tasks_per_job'] >= num_tasks:
if job_index * dataset['tasks_per_job'] <= num_tasks:
break
logger.info('a job must have failed to buffer, so check in reverse order. job_index=%d, num_tasks=%d', job_tmp_index, num_tasks)
job_tasks = await self.rest_client.request('GET', f'/datasets/{dataset_id}/tasks',
Expand Down

0 comments on commit 8782fed

Please sign in to comment.