DownloadErrorHandlingPolicy
Download error handling policy
Fields
Name | Type | Description |
---|---|---|
ErrorHandlingPolicy | DownloadErrorHandlingPolicies | Required. Download error handling policy |
RetryPolicyParams | RetryPolicyParams | Optional. Retry settings. It comes into play if the Retry error handling policy is selected. If not set, 0 values are used |
Initialization String Format
An instance can be initialized with a string of the following format: ErrorHandlingPolicy: <policy>
Examples
Creating a new instance initialized from a string:
DECLARE @downloadErrorHandlingPolicy wds.DownloadErrorHandlingPolicy = 'ErrorHandlingPolicy: Skip';
SET @jobConfig.DownloadErrorHandlingPolicy = @downloadErrorHandlingPolicy;
Setting the job DownloadErrorHandlingPolicy from a string:
SET @jobConfig.DownloadErrorHandlingPolicy = 'ErrorHandlingPolicy: Skip';;
DownloadErrorHandlingPolicies
Download error handling policies enumeration.
Values
Name | Description |
---|---|
Skip | Skip an error and continue crawling |
Retry | Try again |
RetryPolicyParams
Retry settings
Fields
Name | Type | Description |
---|---|---|
RetryDelayMs | Int | Optional. Delay between retries in milliseconds. Default is 0 |
RetriesLimit | Int | Optional. Maximum number of retries. Default is 0 |
Initialization String Format
An instance can be initialized with a string of the following format: RetryDelayMs: dealy; RetriesLimit: retries
Examples
Creating a new instance initialized from a string:
DECLARE @retryPolicyParams wds.RetryPolicyParams = 'RetryDelayMs: 1000; RetriesLimit: 3';
SET @downloadErrorHandlingPolicy.RetryPolicyParams = @retryPolicyParams
Setting the DownloadErrorHandlingPolicy RetryPolicyParams from a string:
SET @downloadErrorHandlingPolicy.RetryPolicyParams = 'RetryDelayMs: 1000; RetriesLimit: 3'