Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

aligncenter

...

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.

Code Block
{
    "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"
    }
}