feat(process_tracker): changing runner selection to dyn dispatch (#853)

This commit is contained in:
Nishant Joshi
2023-04-11 14:21:05 +05:30
committed by GitHub
parent 2351116692
commit 18b84c428f
4 changed files with 37 additions and 29 deletions

View File

@ -24,7 +24,9 @@ pub async fn start_process_tracker(
) -> CustomResult<(), errors::ProcessTrackerError> {
match scheduler_flow {
SchedulerFlow::Producer => producer::start_producer(state, scheduler_settings).await?,
SchedulerFlow::Consumer => consumer::start_consumer(state, scheduler_settings).await?,
SchedulerFlow::Consumer => {
consumer::start_consumer(state, scheduler_settings, workflows::runner_from_task).await?
}
SchedulerFlow::Cleaner => {
error!("This flow has not been implemented yet!");
}