Class MultiServerServiceRunner
OptimaJet.Workflow.Core.Runtime.ServiceRunners.MultiServerServiceRunner
Provides a service runner implementation for multi-server workflow runtime execution.
Namespace: OptimaJet.Workflow.Core.Runtime.ServiceRunners
public sealed class MultiServerServiceRunner : IWorkflowServiceRunnerType Hierarchy
- MultiServerServiceRunner Current type
- Implemented interfaces
Constructors
public MultiServerServiceRunner(WorkflowRuntime runtimeOwner, IMultiServerSettingsSource settingsSource) #Initializes a new multi-server service runner for the specified runtime.
Parameters
Name
Type
Description
runtimeOwnerWorkflowRuntimeThe runtime instance that owns this service runner.
Remarks
The constructor configures and registers the alive and service timers required for periodic coordination work in multi-server mode.
Properties
public bool IsSupportsMultiServer { get; } #Gets a value indicating that the runner is designed for multi-server execution.
public IMultiServerSettingsSource SettingsSource { get; } #Gets the settings source used to read multi-server runtime configuration.
Methods
public Task StartAsync(ITimerManager manager) #Starts the multi-server service runner.
Parameters
Name
Type
Description
Returns
Type
Description
TaskA task that is completed after startup checks and initialization are finished.
Exceptions
Type
Description
LicenseExceptionThrown when the current runtime count exceeds MultiServerSettings.MaxNumberOfInstances.
ExceptionThrown when startup status checks exceed the configured attempt limit.
Remarks
This implementation validates license limits, performs startup runtime status checks, and initializes the alive and service timer cycle for this runtime. The
manager argument is not used by this implementation.Remarks
The runner validates startup conditions, coordinates the runtime status lifecycle, and registers the alive and service timers used for process coordination.