Skip to content

IDurableJobHandler Methods

Defines the interface for handling durable job execution. Grains implement this interface to receive and process durable jobs.

ExecuteJobAsync(IJobRunContext, CancellationToken)

abstract
public abstract Task ExecuteJobAsync(IJobRunContext context, CancellationToken attemptCancellationToken)
Executes the durable job with the provided context.

Parameters

contextIJobRunContext
The context containing information about the durable job execution.
attemptCancellationTokenCancellationToken
A token which cooperatively requests cancellation of the current execution attempt. Attempt cancellation does not cancel the durable job itself; the job remains eligible for another attempt.

Returns

A task that represents the asynchronous job execution operation.