Skip to content

Commit ab01506

Browse files
authored
bug(experimenter): give glean a unique data dir per pid (#13789)
Because - glean must have a unique data dir per pid This commit - Adds a process id subdir to the glean data dir path Fixes #13788
1 parent f876b22 commit ab01506

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

experimenter/experimenter/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
https://docs.djangoproject.com/en/1.9/ref/settings/
1111
"""
1212

13+
import os
1314
from pathlib import Path
1415
from urllib.parse import urljoin
1516

@@ -74,7 +75,7 @@
7475

7576
GLEAN_UPLOAD_ENABLED = config("GLEAN_UPLOAD_ENABLED", default=False, cast=bool)
7677

77-
GLEAN_DATA_DIR = config("GLEAN_DATA_DIR", default="/var/glean")
78+
GLEAN_DATA_DIR = Path(config("GLEAN_DATA_DIR", default="/var/glean")) / str(os.getpid())
7879

7980
# Application definition
8081

0 commit comments

Comments
 (0)