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.

InProgress(TimeSpan)

static
View source
public static DurableJobRunResult InProgress(TimeSpan delay)
Creates a result indicating the job execution remains in progress and should be polled after the specified delay.

Parameters

delayTimeSpan
The time to wait before polling the run again.

Returns

An in-progress job result.

RescheduleAt(DateTimeOffset)

static
View source
public static DurableJobRunResult RescheduleAt(DateTimeOffset dueTime)
Creates a result indicating that the current execution completed successfully and requested durable rescheduling.

Parameters

dueTimeDateTimeOffset
The time at which the next execution should become due.

Returns

A durable rescheduling result.