Skip to content

IJobShard.RescheduleJobAsync(IJobRunContext, DateTimeOffset, CancellationToken)

RescheduleJobAsync(IJobRunContext, DateTimeOffset, CancellationToken)

abstract
public abstract Task<DurableJobMutationResult> RescheduleJobAsync(IJobRunContext jobContext, DateTimeOffset newDueTime, CancellationToken cancellationToken)
Reschedules a successfully completed execution with its dequeue count reset.

Parameters

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

Returns

A task containing the durable mutation outcome.