Skip to content

JobShardManager.AssignJobShardsAsync(DateTimeOffset, int, CancellationToken)

AssignJobShardsAsync(DateTimeOffset, int, CancellationToken)

abstract
public abstract Task<List<IJobShard>> AssignJobShardsAsync(DateTimeOffset maxDueTime, int maxNewClaims, CancellationToken cancellationToken)
Assigns orphaned job shards to this silo.

Parameters

maxDueTimeDateTimeOffset
Maximum due time for shards to consider.
maxNewClaimsint
The maximum number of orphaned shards to claim in this call. Use System.Int32.MaxValue for unlimited. Shards already owned by this silo are always returned regardless of this limit.
cancellationTokenCancellationToken
Cancellation token.

Returns

A list of job shards assigned to this silo.