Skip to content

JobShard.PersistRetryJobAsync(IJobRunContext, DateTimeOffset, CancellationToken)

PersistRetryJobAsync(IJobRunContext, DateTimeOffset, CancellationToken)

abstract
protected abstract Task PersistRetryJobAsync(IJobRunContext jobContext, DateTimeOffset newDueTime, CancellationToken cancellationToken)
Persists the rescheduling of a job to the underlying storage.

Parameters

jobContextIJobRunContext
The execution context of the job to retry.
newDueTimeDateTimeOffset
The new due time for the job. This value supersedes DurableJob on IJobRunContext.
cancellationTokenCancellationToken
A token to cancel the operation.

Returns

A task that represents the asynchronous operation.