Skip to content

Commit 87ffb42

Browse files
committed
Check tmp dir of all datastores
1 parent 90c683f commit 87ffb42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

job_executor/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import time
33
from multiprocessing import Queue
4-
from pathlib import Path
54

65
from job_executor.adapter import datastore_api
76
from job_executor.adapter.datastore_api.models import JobStatus
@@ -21,7 +20,9 @@ def initialize_app() -> None:
2120
rollback.fix_interrupted_jobs()
2221
rdns = datastore_api.get_datastores()
2322
for rdn in rdns:
24-
local_storage = LocalStorageAdapter(Path(environment.datastore_dir))
23+
local_storage = LocalStorageAdapter(
24+
datastore_api.get_datastore_directory(rdn)
25+
)
2526
if local_storage.datastore_dir.temporary_backup_exists():
2627
raise StartupException(f"tmp directory exists for {rdn}")
2728
except Exception as e:

0 commit comments

Comments
 (0)