Skip to content

Commit

Permalink
Use explicit prefix for queue type for clarity, specifically because …
Browse files Browse the repository at this point in the history
…there are multiple Queue types floating around with very similar interfaces
  • Loading branch information
benclifford committed Aug 8, 2024
1 parent 467f006 commit d3dd11e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions parsl/monitoring/router.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from __future__ import annotations

import logging
import multiprocessing.queues as mpq
import os
import pickle
import socket
import threading
import time
from multiprocessing.queues import Queue
from multiprocessing.synchronize import Event
from typing import Optional, Tuple, Union

Expand Down Expand Up @@ -34,10 +34,10 @@ def __init__(self,
logdir: str = ".",
logging_level: int = logging.INFO,
atexit_timeout: int = 3, # in seconds
priority_msgs: "Queue[AddressedMonitoringMessage]",
node_msgs: "Queue[AddressedMonitoringMessage]",
block_msgs: "Queue[AddressedMonitoringMessage]",
resource_msgs: "Queue[AddressedMonitoringMessage]",
priority_msgs: "mpq.Queue[AddressedMonitoringMessage]",
node_msgs: "mpq.Queue[AddressedMonitoringMessage]",
block_msgs: "mpq.Queue[AddressedMonitoringMessage]",
resource_msgs: "mpq.Queue[AddressedMonitoringMessage]",
exit_event: Event,
):
""" Initializes a monitoring configuration class.
Expand Down Expand Up @@ -204,12 +204,12 @@ def start_zmq_listener(self) -> None:

@wrap_with_logs
@typeguard.typechecked
def router_starter(comm_q: "Queue[Union[Tuple[int, int], str]]",
exception_q: "Queue[Tuple[str, str]]",
priority_msgs: "Queue[AddressedMonitoringMessage]",
node_msgs: "Queue[AddressedMonitoringMessage]",
block_msgs: "Queue[AddressedMonitoringMessage]",
resource_msgs: "Queue[AddressedMonitoringMessage]",
def router_starter(comm_q: "mpq.Queue[Union[Tuple[int, int], str]]",
exception_q: "mpq.Queue[Tuple[str, str]]",
priority_msgs: "mpq.Queue[AddressedMonitoringMessage]",
node_msgs: "mpq.Queue[AddressedMonitoringMessage]",
block_msgs: "mpq.Queue[AddressedMonitoringMessage]",
resource_msgs: "mpq.Queue[AddressedMonitoringMessage]",
exit_event: Event,

hub_address: str,
Expand Down

0 comments on commit d3dd11e

Please sign in to comment.