Skip to content

Commit a13b06c

Browse files
authored
setproctitle: avoid being caught by dask.config; add to test envs (#9202)
All CI failures are unrelated
1 parent 5e46e5e commit a13b06c

6 files changed

Lines changed: 7 additions & 2 deletions

File tree

continuous_integration/environment-3.10.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies:
4444
- requests
4545
- scikit-learn
4646
- scipy
47+
- setproctitle
4748
- sortedcollections
4849
- tblib
4950
- toolz

continuous_integration/environment-3.11.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies:
3838
- requests
3939
- scikit-learn
4040
- scipy
41+
- setproctitle
4142
- sortedcollections
4243
- tblib
4344
- toolz

continuous_integration/environment-3.12.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies:
3838
- requests
3939
- scikit-learn
4040
- scipy
41+
- setproctitle
4142
- sortedcollections
4243
- tblib
4344
- toolz

continuous_integration/environment-3.13.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies:
3737
- requests
3838
- scikit-learn
3939
- scipy
40+
- setproctitle
4041
- sortedcollections
4142
- tblib
4243
- toolz

continuous_integration/environment-3.14.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dependencies:
3737
- requests
3838
- scikit-learn
3939
- scipy
40+
- setproctitle
4041
- sortedcollections
4142
- tblib
4243
- toolz

distributed/proctitle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def enable_proctitle_on_children():
1616
Enable setting the process title on this process' children and
1717
grandchildren.
1818
"""
19-
os.environ["DASK_PARENT"] = str(os.getpid())
19+
os.environ["__DASK_PARENT_PID"] = str(os.getpid())
2020

2121

2222
def enable_proctitle_on_current():
@@ -37,7 +37,7 @@ def setproctitle(title):
3737
enabled = _enabled
3838
if not enabled:
3939
try:
40-
enabled = int(os.environ.get("DASK_PARENT", "")) != os.getpid()
40+
enabled = int(os.environ.get("__DASK_PARENT_PID", "")) != os.getpid()
4141
except ValueError: # pragma: no cover
4242
pass
4343
if enabled:

0 commit comments

Comments
 (0)