@@ -2118,6 +2118,17 @@ def create_callback_event_started(cls, context: EventCreationContext) -> Event:
21182118 callback_id : str | None = (
21192119 callback_details .callback_id if callback_details else None
21202120 )
2121+ callback_options : CallbackOptions | None = (
2122+ context .operation_update .callback_options
2123+ if context .operation_update
2124+ else None
2125+ )
2126+ timeout : int | None = (
2127+ callback_options .timeout_seconds if callback_options else None
2128+ )
2129+ heartbeat_timeout : int | None = (
2130+ callback_options .heartbeat_timeout_seconds if callback_options else None
2131+ )
21212132 return cls (
21222133 event_type = EventType .CALLBACK_STARTED .value ,
21232134 event_timestamp = context .start_timestamp ,
@@ -2126,7 +2137,11 @@ def create_callback_event_started(cls, context: EventCreationContext) -> Event:
21262137 operation_id = context .operation .operation_id ,
21272138 name = context .operation .name ,
21282139 parent_id = context .operation .parent_id ,
2129- callback_started_details = CallbackStartedDetails (callback_id = callback_id ),
2140+ callback_started_details = CallbackStartedDetails (
2141+ callback_id = callback_id ,
2142+ timeout = timeout ,
2143+ heartbeat_timeout = heartbeat_timeout ,
2144+ ),
21302145 )
21312146
21322147 @classmethod
0 commit comments