Summary
Failure policy controls the behavior when a job's execution encountered an error.
Job JSON Example
Job Failure policy options include:
- continue (default)- log error in the audit log and continue execution
- halt - log error in the audit log and stop execution
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"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"
}
}
|