Job Notifications
Learn how to set job notification thresholds on the DNAnexus Platform.
Last updated
Was this helpful?
Learn how to set job notification thresholds on the DNAnexus Platform.
Last updated
Was this helpful?
Being notified of when a job may be stuck can help users to troubleshoot problems in a timely manner. On DNAnexus, users can set to limit the amount of time their jobs can run, or set a threshold on how long a job can take to run before the user is notified. The notification threshold can be specified in the executable at compile time via or .
When the threshold has been reached for a , the user who launched the executable and the org admin will receive an email notification.
For a root execution, the turnaround time is the time between its creation time and the time it reaches the (or the current time if it is not in a terminal state). The terminal states of an execution are done, terminated and failed. The job tree turnaround time threshold can be set from the dxapp.json
file using the treeTurnaroundTimeThreshold
supported field, where the threshold time is set in seconds. Note that when a user runs an executable that has a threshold, only the resulting root execution will have that threshold applied to it. See here for more details on the treeTurnAroundTimeThreshold
.
Example of including the treeTurnaroundTimeThreshold
field in dxapp.json
:
In the command-line interface (CLI), the and dx build --app
commands can accept the treeTurnaroundTimeThreshold
field from dxapp.json
, and the resulting app will be built with the job tree turnaround time threshold from the JSON file.
To check the treeTurnaroundTimeThreshold
value of an executable, users can use {app, applet, workflow or global workflow id} --json command.
Using the dx describe {execution_id} --json
command will display the selectedTreeTurnaroundTimeThreshold
, selectedTreeTurnaroundTimeThresholdFrom
, and treeTurnaroundTime
values of root executions.
For WDL workflows and tasks, dxCompiler allows users to specify tree turnaround time using the JSON file. dxCompiler uses the value of the treeTurnaroundTimeThreshold
field from the perWorkflowDxAttributes
and defaultWorkflowDxAttributes
sections in extras
and passes on this threshold to the new workflow generated from this file. To set a job tree turnaround time threshold for an applet using dxCompiler, add the treeTurnaroundTimeThreshold
field to the perTaskDxAttributes
and defaultTaskDxAttributes
sections in the extras JSON file.
Example of including the treeTurnAroundTimeThreshold
field in perWorkflowDxAttributes
: