Skip to content

Commit

Permalink
Further fix to make fork setting be effective for the entire parsl pa…
Browse files Browse the repository at this point in the history
…ckage, to avoid any explicit handling from the end user side
  • Loading branch information
yongyanrao committed Jun 3, 2021
1 parent 7e35079 commit 262c17f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions parsl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@

from parsl.dataflow.dflow import DataFlowKernel, DataFlowKernelLoader

import multiprocessing
multiprocessing.set_start_method('fork', force=True)

__author__ = 'The Parsl Team'
__version__ = VERSION

Expand Down
1 change: 0 additions & 1 deletion parsl/executors/high_throughput/process_worker_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
mpProcess = multiprocessing.Process
else:
from parsl.executors.high_throughput.mac_safe_queue import MacSafeQueue as mpQueue
multiprocessing.set_start_method('fork', force=True)
mpProcess = multiprocessing.get_context('fork').Process

from parsl.serialize import unpack_apply_message, serialize
Expand Down

0 comments on commit 262c17f

Please sign in to comment.