Skip to content

Commit

Permalink
move port mailbox into init so it can be seen by typechecker
Browse files Browse the repository at this point in the history
  • Loading branch information
benclifford committed Apr 4, 2023
1 parent 0811837 commit 729efa5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions parsl/executors/workqueue/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ def __init__(self,
self.function_dir = function_dir
self.coprocess = coprocess

self._port_mailbox: multiprocessing.Queue[int]
self._port_mailbox = multiprocessing.Queue()

if not self.address:
self.address = socket.gethostname()

Expand Down Expand Up @@ -323,8 +326,6 @@ def start(self):

logger.debug("Starting WorkQueueExecutor")

self._port_mailbox = multiprocessing.Queue()

# Create a Process to perform WorkQueue submissions
submit_process_kwargs = {"task_queue": self.task_queue,
"launch_cmd": self.launch_cmd,
Expand Down

0 comments on commit 729efa5

Please sign in to comment.