JobShard
class
Namespace: Orleans.DurableJobs
Base implementation of
IJobShard that provides common functionality for job shard implementations. public abstract class JobShard : IJobShard, IAsyncDisposableProperties
EndTimeGets the end time of the time range managed by this shard.IdGets the unique identifier for this job shard.IsAddingCompletedGets a value indicating whether this shard has been marked as complete and is no longer accepting new jobs.MetadataGets optional metadata associated with this job shard.StartTimeGets the start time of the time range managed by this shard.
Methods
ConsumeDurableJobsAsyncConsumes durable jobs from this shard in order of their due time.DisposeAsyncPerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.GetJobCountAsyncGets the number of jobs currently scheduled in this shard.MarkAsCompleteAsync(CancellationToken)Marks this shard as complete, preventing new jobs from being scheduled.RemoveJobAsync(string, CancellationToken)Removes a durable job from this shard.RetryJobLaterAsync(IJobRunContext, DateTimeOffset, CancellationToken)Reschedules a job to be retried at a later time.TryScheduleJobAsync(ScheduleJobRequest, CancellationToken)Attempts to schedule a new job on this shard.
