Skip to content

Commit

Permalink
Fixed oq workers status [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Sep 14, 2024
1 parent 46e47c1 commit dd2b709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openquake/baselib/workerpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import shutil
import socket
import getpass
import tempfile
import functools
import subprocess
from datetime import datetime
Expand Down Expand Up @@ -276,7 +277,7 @@ def __init__(self, ctrl_port=1909, num_workers=-1, job_id=0):
else:
self.num_workers = num_workers
self.scratch = parallel.scratch_dir(job_id)
self.executing = os.path.join(self.scratch, 'executing')
self.executing = tempfile.mkdtemp(dir=self.scratch)
try:
os.mkdir(self.executing)
except FileExistsError: # already created by another WorkerPool
Expand Down

0 comments on commit dd2b709

Please sign in to comment.