We recommend all batch scripts explicitly define the path to the output/error files instead of relying on Torque's default naming convention.
-
Modify all batch scripts (e.g.,
jobs/container/main.sh.mustache
) as such:#PBS -N container_main ... #PBS -o container_main.log #PBS -j oe ...
The
-o
specifies output log filename and the-j oe
joins both the output and error logs into the output log file. This makes it easier to see where the error occurred in the workflow.If you don't want both streams in a single file, then specify:
#PBS -N container_main ... #PBS -o container_main.output #PBS -e container_main.error ...
-
Follow the steps outlined in Resolving the URL to a file of a simulation
-
Add to your erb:
<%= link_to "Output Log", container_results_path(@container, "container_main.output") %> <%= link_to "Error Log", container_results_path(@container, "container_main.error") %>