MBrace.Runtime


CloudWorkItem

Namespace: MBrace.Runtime

A cloud work item is fragment of a cloud process to be executed in a single machine.

Record Fields

Record FieldDescription
CancellationToken
Signature: CloudCancellationToken

Distributed cancellation token source bound to work item

FaultCont
Signature: ExecutionContext -> ExceptionDispatchInfo -> unit

Work item Fault continuation

FaultPolicy
Signature: FaultPolicy

Work item fault policy

Id
Signature: CloudWorkItemId

Cloud work item unique identifier

Process
Signature: ICloudProcessEntry

Parent cloud process entry for work item

StartWorkItem
Signature: ExecutionContext -> unit

Triggers work item execution with worker-provided execution context

TargetWorker
Signature: IWorkerId option

Declared target worker for work item

Type
Signature: Type

Work item workflow 'return type'; Work items have no return type per se but this indicates the return type of the initial computation that is being passed to its continuations.

WorkItemType
Signature: CloudWorkItemType

Work item creation metadata

Static members

Static memberDescription
Create(...)
Signature: (procEntry:ICloudProcessEntry * token:CloudCancellationToken * faultPolicy:FaultPolicy * scont:(ExecutionContext -> 'T -> unit) * econt:(ExecutionContext -> ExceptionDispatchInfo -> unit) * ccont:(ExecutionContext -> OperationCanceledException -> unit) * workItemType:CloudWorkItemType * workflow:Cloud<'T> * target:IWorkerId option) -> CloudWorkItem
Type parameters: 'T

Create a cloud work item out of given cloud workflow and continuations.

Fork me on GitHub