Skip to content

JobShard.RetryJobLaterAsync(IJobRunContext, DateTimeOffset, CancellationToken)

RetryJobLaterAsync(IJobRunContext, DateTimeOffset, CancellationToken)

View source
public Task RetryJobLaterAsync(IJobRunContext jobContext, DateTimeOffset newDueTime, CancellationToken cancellationToken)
Reschedules a job to be retried at a later time.

Parameters

jobContextIJobRunContext
The context of the job to retry.
newDueTimeDateTimeOffset
The new due time for the job.
cancellationTokenCancellationToken
A token to cancel the operation.

Returns

A task that represents the asynchronous operation.