Skip to content

Commit

Permalink
fix bohrium remote root (#287)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Nov 29, 2022
1 parent bcb105d commit 31b81dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpdispatcher/dp_cloud_server_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_from_dict(cls, context_dict):
def bind_submission(self, submission):
self.submission = submission
self.local_root = os.path.join(self.temp_local_root, submission.work_base)
self.remote_root = '$(pwd)'
self.remote_root = '.'

self.submission_hash = submission.submission_hash

Expand Down
2 changes: 1 addition & 1 deletion dpdispatcher/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"""

script_env_template="""
REMOTE_ROOT={remote_root}
REMOTE_ROOT=$(readlink -f {remote_root})
echo 0 > $REMOTE_ROOT/{flag_if_job_task_fail}
test $? -ne 0 && exit 1
Expand Down

0 comments on commit 31b81dc

Please sign in to comment.