Skip to content

Commit

Permalink
Merge pull request #882 from deepmodeling/zjgemi
Browse files Browse the repository at this point in the history
fix: symlink relative path
  • Loading branch information
zjgemi authored Dec 5, 2024
2 parents fe3f75d + 43cb6d7 commit f9fe96e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/quick-start-postgres-3.4.1-deepmodeling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ spec:
- --auth-mode
- client
env: []
image: registry.dp.tech/deepmodeling/argocli:3.4.1-202309142010
image: registry.dp.tech/deepmodeling/argocli:3.4.1-202410311507
name: argo-server
ports:
- containerPort: 2746
Expand Down Expand Up @@ -1882,7 +1882,7 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: registry.dp.tech/deepmodeling/workflow-controller:3.4.1-202405311738
image: registry.dp.tech/deepmodeling/workflow-controller:3.4.1-202410311507
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions src/dflow/python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def copy_results(source, name, data_root="/tmp", slice_dir=None,
if symlink:
os.makedirs(os.path.abspath(os.path.dirname(target)),
exist_ok=True)
os.symlink(source, target)
os.symlink(os.path.abspath(source), target)
else:
copy_file(source, target, shutil.copy)
if rel_path[:1] == "/":
Expand All @@ -391,7 +391,7 @@ def copy_results(source, name, data_root="/tmp", slice_dir=None,
if symlink:
os.makedirs(os.path.abspath(os.path.dirname(target)),
exist_ok=True)
os.symlink(source, target)
os.symlink(os.path.abspath(source), target)
else:
copy_file(source, target)
return rel_path
Expand Down

0 comments on commit f9fe96e

Please sign in to comment.