Skip to content

Commit

Permalink
include MEM_BYTES in log
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkinsc committed Dec 8, 2023
1 parent 9edb31b commit a834247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipes/WDL/tasks/tasks_terra.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ task check_terra_env {
else
echo "Not running on Terra+GCP"
fi
{ if [ -f /sys/fs/cgroup/memory/memory.peak ]; then cat /sys/fs/cgroup/memory/memory.peak; elif [ -f /sys/fs/cgroup/memory/memory.max_usage_in_bytes ]; then cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes; else echo "0"; fi } > MEM_BYTES
echo -n'' "MEM_BYTES: "; { if [ -f /sys/fs/cgroup/memory/memory.peak ]; then cat /sys/fs/cgroup/memory/memory.peak; elif [ -f /sys/fs/cgroup/memory/memory.max_usage_in_bytes ]; then cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes; else echo "0"; fi } | tee MEM_BYTES
>>>
output {
Boolean is_running_on_terra = read_boolean("RUNNING_ON_TERRA")
Expand Down

0 comments on commit a834247

Please sign in to comment.