Job Failure Policy
Failure policy controls the behavior when a job's execution encountered 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. |
{
"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"
}
}