oc-schedulerd/docs/uml/diag_seq_execution_manager.puml
2024-07-05 17:44:53 +02:00

35 lines
896 B
Plaintext

@startuml
participant main
participant manager
participant argo_builder
participant oc_catalog
activate main
main -> manager : startManager(list_schedules)
activate manager
loop while true
manager -> oc_catalog : get(/v1/schedule/) : \n @start time.Now() \n @end time.Now() + 1 hour
oc_catalog --> manager : json schedule workflow
manager -> manager : lock(list_workflows)
end
main -> manager : launch_exec(list_schedule)
loop while list_schedule[0].time < time.Now()
manager -> argo_builder : create_argo(workflow_name)
argo_builder -> oc_catalog : get(/v1/workflow) :\n @name workflow_name
oc_catalog --> argo_builder: workflow
argo_builder -> argo_builder: create_argo
argo_builder --> manager : true/false
alt true
manager -> manager : remove list_schedule[0]
end
end
@enduml