Skip to content

DurableJobRunResult Methods

Represents the result of a durable job execution.

Failed(Exception)

static
View source
public static DurableJobRunResult Failed(Exception exception)
Creates a result indicating the job failed.

Parameters

exceptionException
The exception that caused the failure. This will be passed to the retry policy.

Returns

A failed job result.

PollAfter(TimeSpan)

static
View source
public static DurableJobRunResult PollAfter(TimeSpan delay)
Creates a result indicating the job should be polled again after the specified delay.

Parameters

delayTimeSpan
The time to wait before checking the job status again.

Returns

A poll-after job result.