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.MaxValuefor 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.
