Skip to content

Commit

Permalink
Cache: Use absolute path for working directory (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Oct 29, 2024
1 parent ac98c42 commit cc96c43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion executorlib/standalone/cache/queue.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from typing import List, Optional

from pysqa import QueueAdapter
Expand Down Expand Up @@ -32,7 +33,7 @@ def execute_with_pysqa(
submit_kwargs = {
"command": " ".join(command),
"dependency_list": [str(qid) for qid in task_dependent_lst],
"working_directory": resource_dict["cwd"],
"working_directory": os.path.abspath(resource_dict["cwd"]),
}
del resource_dict["cwd"]
unsupported_keys = [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cache_executor_pysqa_flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestCacheExecutorPysqa(unittest.TestCase):
def test_executor(self):
with Executor(
backend="pysqa_flux",
resource_dict={"cores": 2, "cwd": os.path.abspath("cwd")},
resource_dict={"cores": 2, "cwd": "exe_working_directory"},
block_allocation=False,
) as exe:
cloudpickle_register(ind=1)
Expand Down

0 comments on commit cc96c43

Please sign in to comment.