SIENTIAPDE-1150
refactor: update orchestration workflow to conditionally start schedule and slot report handlers based on report availability, improving clarity and efficiency
This commit is contained in:
@@ -178,6 +178,8 @@ class Orchestrator:
|
|||||||
schedule_insertion_report = await schedule_insertion_report_handler
|
schedule_insertion_report = await schedule_insertion_report_handler
|
||||||
schedule_update_report = await schedule_update_report_handler
|
schedule_update_report = await schedule_update_report_handler
|
||||||
|
|
||||||
|
if schedule_insertion_report or schedule_update_report or schedule_deletion_report:
|
||||||
|
|
||||||
schedule_report_handler = workflow.start_activity_method(
|
schedule_report_handler = workflow.start_activity_method(
|
||||||
Activities.report_schedule_orchestration,
|
Activities.report_schedule_orchestration,
|
||||||
{
|
{
|
||||||
@@ -189,6 +191,8 @@ class Orchestrator:
|
|||||||
start_to_close_timeout=timedelta(seconds=60)
|
start_to_close_timeout=timedelta(seconds=60)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if slot_insertion_report or slot_deletion_report:
|
||||||
|
|
||||||
slot_report_handler = workflow.start_activity_method(
|
slot_report_handler = workflow.start_activity_method(
|
||||||
Activities.report_slot_orchestration,
|
Activities.report_slot_orchestration,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user