Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermain committed Dec 4, 2014
1 parent 7d5ad1f commit 85090bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/smart_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def main():

path_job, path_job_logs, path_job_commands = create_job_folders(jobname)
elif args.mode == "resume":
jobname = args.batch_uid
path_job, path_job_logs, path_job_commands = get_job_folders(args.batch_uid)
else:
raise ValueError("Unknown subcommand!")
Expand Down
2 changes: 1 addition & 1 deletion smartdispatch/command_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_command_to_run(self):

def get_nb_commands_to_run(self):
with utils.open_with_lock(self._commands_filename, 'r') as commands_file:
return len(commands_file.readline())
return len(commands_file.readlines())

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

0 comments on commit 85090bd

Please sign in to comment.