Skip to content

Commit

Permalink
Merge pull request #173 from lsst/tickets/DM-33622
Browse files Browse the repository at this point in the history
DM-33622: Switch to using lsst.utils.threads for implicit threading
  • Loading branch information
timj committed Mar 10, 2022
2 parents 09c0b9d + c06579f commit 466ed3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/mpGraphExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
from enum import Enum
from typing import Optional

from lsst.base import disableImplicitThreading
from lsst.daf.butler.cli.cliLog import CliLog
from lsst.pipe.base import InvalidQuantumError
from lsst.pipe.base.graph.graph import QuantumGraph
from lsst.utils.threads import disable_implicit_threading

# -----------------------------
# Imports for other modules --
Expand Down Expand Up @@ -473,7 +473,7 @@ def _executeQuantaMP(self, graph, butler):
Data butler instance
"""

disableImplicitThreading() # To prevent thread contention
disable_implicit_threading() # To prevent thread contention

_LOG.debug("Using %r for multiprocessing start method", self.startMethod)

Expand Down

0 comments on commit 466ed3c

Please sign in to comment.