Skip to content

Commit

Permalink
Avoid warning when gilknocker not installed (#7808)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Apr 26, 2023
1 parent afe6491 commit 57ae3e7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions distributed/system_monitor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import sys
import warnings
from collections import deque
from typing import Any

Expand Down Expand Up @@ -104,9 +103,6 @@ def __init__(
try:
from gilknocker import KnockKnock
except ImportError:
warnings.warn(
"Monitoring GIL requires `gilknocker` to be installed. `pip install gilknocker`"
)
self.monitor_gil_contention = False
else:
self.quantities["gil_contention"] = deque(maxlen=maxlen)
Expand Down

0 comments on commit 57ae3e7

Please sign in to comment.