Skip to content

DurableTaskRejectedException

class

Namespace: Orleans.Durable.Tasks

Represents the start of a durable task whose grain permanently rejected the invocation for a reason other than a conflict, which it reports with a rejection code of its own, or without one.
[Orleans.GenerateSerializer]
[Orleans.Alias(Orleans.Durable.Tasks.DurableTaskRejectedException)]
public sealed class DurableTaskRejectedException : Exception

Remarks

The task's grain dead-lettered the invocation and stored nothing for it, so the starter's record of the task fails with this exception: awaiting the task, or a ScheduleAsync which awaits its acceptance, throws it, in every replay. A rejection for a conflicting task identifier fails with DurableTaskConflictException instead. A rejection with the DurableTaskRejectionCodes code leaves the outcome unknown: the grain may have run the task, and deleted it after its retention, before the late delivery arrived.

Constructors

Properties

  • CodeGets the rejection code which the grain reported, or null for none.
  • TargetGets the grain which rejected the invocation.
  • TaskIdGets the task which the invocation starts.