Skip to content

IJobShard.RemoveJobAsync(string, CancellationToken)

RemoveJobAsync(string, CancellationToken)

abstract
public abstract Task<bool> RemoveJobAsync(string jobId, CancellationToken cancellationToken)
Removes a durable job from this shard.

Parameters

jobIdstring
The unique identifier of the job to remove.
cancellationTokenCancellationToken
A token to cancel the operation.

Returns

A task that represents the asynchronous operation. The task result contains true if the job was successfully removed, or false if the job was not found.