Job Failure Policy Using REST API
Learn how to manage the job failure policy for migration jobs using the DryvIQ REST API.
Table of Contents
Overview
Failure policy controls the behavior when a job's execution encounters an error.
Options | Behavior |
---|---|
"failure_policy": "continue" | Log error in the audit log and continue execution. This is the default option. |
"failure_policy": "halt" | Log error in the audit log and stop execution. |
Job JSON Example
{
"name":"Simple Transfer Job with Failure Policy",
"kind": "transfer",
"transfer": {
"failure_policy": "halt",
"transfer_type": "copy",
"source": {
"connection": { "id": "{{nfs_connection}}" },
"target": {
"path": "/SourcePath"
}
},
"destination": {
"connection": { "id": "{{cloud_connection}}" },
"target": {
"path": "/DestinationPath"
}
}
},
"schedule": {
"mode": "manual"
}
}