Skip to content

Commit 082bf9f

Browse files
committed
[Feature] Define job name on a per function bases
1 parent 4a63cb1 commit 082bf9f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/executorlib/task_scheduler/file/spawner_pysqa.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def execute_with_pysqa(
8686
if k in resource_dict:
8787
del resource_dict[k]
8888
if "job_name" not in resource_dict:
89-
resource_dict["job_name"] = os.path.basename(
90-
os.path.dirname(os.path.abspath(cwd))
91-
)
89+
resource_dict["job_name"] = os.path.basename(file_name).split("_i.h5")[0]
9290
submit_kwargs.update(resource_dict)
9391
set_current_directory_in_environment()
9492
try:

0 commit comments

Comments
 (0)