Class DataPipelineRunnerService
- Namespace
 - FoundationaLLM.DataPipelineEngine.Services
 
- Assembly
 - FoundationaLLM.DataPipelineEngine.dll
 
Provides capabilities for running data pipelines.
public class DataPipelineRunnerService : DataPipelineBackgroundService, IHostedService, IDisposable, IResourceProviderClient, IDataPipelineRunnerService
  - Inheritance
 - 
      
      
      
      DataPipelineRunnerService
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
DataPipelineRunnerService(IDataPipelineStateService, IServiceProvider, IOptions<DataPipelineServiceSettings>, ILogger<DataPipelineRunnerService>)
Initializes a new instance of the service.
public DataPipelineRunnerService(IDataPipelineStateService stateService, IServiceProvider serviceProvider, IOptions<DataPipelineServiceSettings> options, ILogger<DataPipelineRunnerService> logger)
  Parameters
stateServiceIDataPipelineStateServiceThe Data Pipeline State service providing state management services.
serviceProviderIServiceProviderThe service collection provided by the dependency injection container.
optionsIOptions<DataPipelineServiceSettings>loggerILogger<DataPipelineRunnerService>The logger used for logging.
Properties
CurrentRunners
public Dictionary<string, DataPipelineRunner> CurrentRunners { get; }
  Property Value
ServiceName
protected override string ServiceName { get; }
  Property Value
Methods
CanStartRun(DataPipelineRun)
Inidicates whether the specified data pipeline run can be started.
public Task<bool> CanStartRun(DataPipelineRun dataPipelineRun)
  Parameters
dataPipelineRunDataPipelineRunThe data pipeline run to start.
Returns
ExecuteAsyncInternal(CancellationToken)
Executes the background service's main logic.
protected override Task ExecuteAsyncInternal(CancellationToken stoppingToken)
  Parameters
stoppingTokenCancellationTokenThe cancellation token used to signal a request to stop the service.
Returns
InitializeAsyncInternal(CancellationToken)
Performs additional initialization for the background service.
protected override Task InitializeAsyncInternal(CancellationToken stoppingToken)
  Parameters
stoppingTokenCancellationTokenThe cancellation token used to signal a request to stop the service.
Returns
StartRun(DataPipelineRun, List<DataPipelineContentItem>, DataPipelineDefinition, UnifiedUserIdentity)
Starts a data pipeline run.
public Task<DataPipelineRun> StartRun(DataPipelineRun dataPipelineRun, List<DataPipelineContentItem> contentItems, DataPipelineDefinition dataPipelineDefinition, UnifiedUserIdentity userIdentity)
  Parameters
dataPipelineRunDataPipelineRunThe data pipeline run to start.
contentItemsList<DataPipelineContentItem>The list of content items to process.
dataPipelineDefinitionDataPipelineDefinitionThe snapshot of the definition of the data pipeline at the time the run was triggered.
userIdentityUnifiedUserIdentityThe identity of the user running the operation.
Returns
- Task<DataPipelineRun>
 The started data pipeline run.
StopAsync(CancellationToken)
Triggered when the application host is performing a graceful shutdown.
public override Task StopAsync(CancellationToken cancellationToken)
  Parameters
cancellationTokenCancellationTokenIndicates that the shutdown process should no longer be graceful.