Skip to content

Commit 7ac89f4

Browse files
committed
fixes
1 parent 4289683 commit 7ac89f4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/executorlib/task_scheduler/interactive/blockallocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _execute_multiple_tasks(
208208
queue_join_on_shutdown: bool = True,
209209
log_obj_size: bool = False,
210210
error_log_file: Optional[str] = None,
211-
worker_id: Optional[int] = None,
211+
worker_id: int = 0,
212212
stop_function: Optional[Callable] = None,
213213
restart_limit: int = 0,
214214
**kwargs,

tests/unit/executor/test_flux_job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def test_single_task(self):
113113
def test_output_files_cwd(self):
114114
dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
115115
os.makedirs(dirname, exist_ok=True)
116-
file_stdout = os.path.join(dirname, "flux.out")
117-
file_stderr = os.path.join(dirname, "flux.err")
116+
file_stdout = os.path.join(dirname, "flux0.out")
117+
file_stderr = os.path.join(dirname, "flux0.err")
118118
with FluxJobExecutor(
119119
max_cores=1,
120120
resource_dict={"cores": 1, "cwd": dirname},
@@ -133,8 +133,8 @@ def test_output_files_cwd(self):
133133
os.remove(file_stderr)
134134

135135
def test_output_files_abs(self):
136-
file_stdout = os.path.abspath("flux.out")
137-
file_stderr = os.path.abspath("flux.err")
136+
file_stdout = os.path.abspath("flux0.out")
137+
file_stderr = os.path.abspath("flux0.err")
138138
with FluxJobExecutor(
139139
max_cores=1,
140140
resource_dict={"cores": 1},

0 commit comments

Comments
 (0)