Skip to content

Commit

Permalink
Import the SpawnProcess class from multiprocessing.context
Browse files Browse the repository at this point in the history
  • Loading branch information
sharonsyh committed Dec 9, 2024
1 parent f8d5b67 commit 8c5456e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zeus/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import warnings
from typing import Sequence
import multiprocessing as mp
from multiprocessing.context import SpawnProcess
from dataclasses import dataclass

from prometheus_client import (
Expand All @@ -28,7 +29,7 @@ class MonitoringProcessState:
"""Represents the state of a monitoring window."""

queue: mp.Queue
proc: mp.context.SpawnProcess
proc: SpawnProcess


class Metric(abc.ABC):
Expand Down

0 comments on commit 8c5456e

Please sign in to comment.