Table of Contents

Interface IWorkflowDispatcher

Namespace
JD.AI.Workflows.Distributed
Assembly
JD.AI.Workflows.Distributed.dll

Enqueues WorkflowWorkItem instances for distributed execution. Implementations back this with Redis Streams, Azure Service Bus, or an in-process channel.

public interface IWorkflowDispatcher

Methods

DispatchAsync(WorkflowWorkItem, CancellationToken)

Dispatches a workflow work item for execution.

Task DispatchAsync(WorkflowWorkItem item, CancellationToken ct = default)

Parameters

item WorkflowWorkItem

The work item to dispatch.

ct CancellationToken

Cancellation token.

Returns

Task