Skip to content

Commit

Permalink
making local submit one job at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilienLC authored Jan 19, 2024
1 parent f275d09 commit 9e227a0
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,16 @@ def launch(
Singleton.get_state(),
)
)

jobs = executor.map_array(self, *zip(*job_params))
return [j.results()[0] for j in jobs]

if self._EXECUTOR == "local":
results = []
for i, job_param in enumerate(job_params):
job = executor.map_array(self, *zip(*[job_params[i]]))
results.append(job[0].results()[0])
return results
else: # self._EXECUTOR == "false":
jobs = executor.map_array(self, *zip(*job_params))
return [j.results()[0] for j in jobs]


class LocalLauncher(BaseSubmititLauncher):
Expand Down

0 comments on commit 9e227a0

Please sign in to comment.