Skip to content

Commit

Permalink
maybe using multiprocessing will fix the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Aug 12, 2024
1 parent da7a98c commit 9782842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/depiction_targeted_preprocbatch/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run(self, n_jobs: int) -> None:
)
for job in batch_dataset.jobs
]
parallel = joblib.Parallel(n_jobs=n_jobs, verbose=10)
parallel = joblib.Parallel(n_jobs=n_jobs, verbose=10, backend="multiprocessing")
parallel(joblib.delayed(self.run_job)(job) for job in jobs)

def run_job(self, job: BatchJob) -> None:
Expand Down

0 comments on commit 9782842

Please sign in to comment.