Skip to content

Commit a8dee99

Browse files
committed
Fixed brittle reference to WHYQD_SPILLWAY temporary directory
1 parent 98c5a2e commit a8dee99

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
- 1.2.6: Fixed brittle reference to `WHYQD_SPILLWAY` temporary directory to be more robust.
12
- 1.2.5: Fixed date parser error when date is an int POSIX timestamp.
23
- 1.2.4: Fixed date parser error when date is an int POSIX timestamp.
34
- 1.2.3: Minor change in Ray dependency.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "whyqd"
3-
version = "1.2.5"
3+
version = "1.2.6"
44
description = "data wrangling simplicity, complete audit transparency, and at speed"
55
authors = ["Gavin Chait <gchait@whythawk.com>"]
66
license = "BSD-3-Clause"

whyqd/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.5
1+
1.2.6

whyqd/config/ray_init.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
# import json
44
import shutil
5+
import tempfile
56
from pathlib import Path
67

78
from whyqd.config.settings import settings
@@ -10,10 +11,7 @@
1011
def clear_spillway() -> bool:
1112
# https://stackoverflow.com/a/56151260/295606
1213
# only do this if ray is not initialised, otherwise it'll crash. horribly.
13-
try:
14-
WHYQD_SPILLWAY = ray._common.utils.get_user_temp_dir()
15-
except AttributeError:
16-
WHYQD_SPILLWAY = ray._private.utils.get_user_temp_dir()
14+
WHYQD_SPILLWAY = tempfile.gettempdir()
1715
if not Path(WHYQD_SPILLWAY).exists():
1816
return False
1917
for path in Path(WHYQD_SPILLWAY).iterdir():

0 commit comments

Comments
 (0)