Skip to content

Commit 85090bd

Browse files
committed
typo
1 parent 7d5ad1f commit 85090bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scripts/smart_dispatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def main():
4646

4747
path_job, path_job_logs, path_job_commands = create_job_folders(jobname)
4848
elif args.mode == "resume":
49+
jobname = args.batch_uid
4950
path_job, path_job_logs, path_job_commands = get_job_folders(args.batch_uid)
5051
else:
5152
raise ValueError("Unknown subcommand!")

smartdispatch/command_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_command_to_run(self):
3838

3939
def get_nb_commands_to_run(self):
4040
with utils.open_with_lock(self._commands_filename, 'r') as commands_file:
41-
return len(commands_file.readline())
41+
return len(commands_file.readlines())
4242

4343
def set_running_command_as_finished(self, command):
4444
with utils.open_with_lock(self._running_commands_filename, 'r+') as running_commands_file:

0 commit comments

Comments
 (0)