Skip to content

IJobShard

interface

Namespace: Orleans.DurableJobs

Represents a shard of durable jobs that manages a collection of jobs within a specific time range. A job shard is responsible for storing, retrieving, and managing the lifecycle of durable jobs that fall within its designated time window.
public interface IJobShard : IAsyncDisposable

Remarks

Job shards are used to partition durable jobs across time ranges to improve scalability and performance. Each shard has a defined start and end time that determines which jobs it manages. Shards can be marked as complete when all jobs within their time range have been processed.

Properties

  • EndTime Gets the end time of the time range managed by this shard.
  • Id Gets the unique identifier for this job shard.
  • IsAddingCompleted Gets a value indicating whether this shard has been marked as complete and is no longer accepting new jobs.
  • Metadata Gets optional metadata associated with this job shard.
  • StartTime Gets the start time of the time range managed by this shard.

Methods