Skip to content

Commit

Permalink
Write submission script to temp
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 15, 2024
1 parent 294965d commit 43ab05d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions executorlib/cache/queue_spawner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import subprocess
import tempfile
from typing import List, Optional, Tuple, Union

from pysqa import QueueAdapter
Expand Down Expand Up @@ -53,6 +54,7 @@ def execute_with_pysqa(
"command": " ".join(command),
"dependency_list": [str(qid) for qid in task_dependent_lst],
"working_directory": os.path.abspath(cwd),
"submission_script_path": tempfile.NamedTemporaryFile().name,
}
if "cwd" in resource_dict:
del resource_dict["cwd"]
Expand Down

0 comments on commit 43ab05d

Please sign in to comment.