Skip to content

Commit

Permalink
Using tmpdir-prefix option
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCinquini committed Feb 28, 2024
1 parent 7064897 commit 29dbd6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow/docker/cwl/docker_cwl_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ job_args=$2
output_dir=${3:-.}
echo "Executing CWL workflow: $cwl_workflow with json arguments: $job_args and output directory: $output_dir"
echo "Current directory: $PWD"
echo: "Current user:"
whoami
echo "$job_args" > /tmp/job_args.json
cat /tmp/job_args.json

Expand All @@ -31,7 +33,7 @@ done
# Execute CWL workflow
. /usr/share/cwl/venv/bin/activate
# cwl-runner --outdir "$output_dir" --no-match-user --no-read-only "$cwl_workflow" /tmp/job_args.json
cwl-runner --no-match-user --no-read-only "$cwl_workflow" /tmp/job_args.json
cwl-runner --no-match-user --no-read-only --tmpdir-prefix . "$cwl_workflow" /tmp/job_args.json
deactivate

# Stop Docker engine
Expand Down

0 comments on commit 29dbd6a

Please sign in to comment.