@@ -474,19 +474,19 @@ async def _cleanup_producer(
474474 async with self ._running_agents_lock :
475475 self ._running_agents .pop (task_id , None )
476476
477- async def on_set_task_push_notification_config (
477+ async def on_create_task_push_notification_config (
478478 self ,
479479 params : CreateTaskPushNotificationConfigRequest ,
480480 context : ServerCallContext | None = None ,
481481 ) -> TaskPushNotificationConfig :
482- """Default handler for 'tasks/pushNotificationConfig/set '.
482+ """Default handler for 'tasks/pushNotificationConfig/create '.
483483
484484 Requires a `PushNotifier` to be configured.
485485 """
486486 if not self ._push_config_store :
487487 raise ServerError (error = UnsupportedOperationError ())
488488
489- task_id = _extract_task_id ( params .task_id )
489+ task_id = params .task_id
490490 task : Task | None = await self .task_store .get (task_id , context )
491491 if not task :
492492 raise ServerError (error = TaskNotFoundError ())
@@ -514,7 +514,7 @@ async def on_get_task_push_notification_config(
514514 if not self ._push_config_store :
515515 raise ServerError (error = UnsupportedOperationError ())
516516
517- task_id = _extract_task_id ( params .task_id )
517+ task_id = params .task_id
518518 config_id = params .id
519519 task : Task | None = await self .task_store .get (task_id , context )
520520 if not task :
@@ -546,7 +546,7 @@ async def on_subscribe_to_task(
546546 Allows a client to re-attach to a running streaming task's event stream.
547547 Requires the task and its queue to still be active.
548548 """
549- task_id = _extract_task_id ( params .id )
549+ task_id = params .id
550550 task : Task | None = await self .task_store .get (task_id , context )
551551 if not task :
552552 raise ServerError (error = TaskNotFoundError ())
@@ -588,7 +588,7 @@ async def on_list_task_push_notification_config(
588588 if not self ._push_config_store :
589589 raise ServerError (error = UnsupportedOperationError ())
590590
591- task_id = _extract_task_id ( params .task_id )
591+ task_id = params .task_id
592592 task : Task | None = await self .task_store .get (task_id , context )
593593 if not task :
594594 raise ServerError (error = TaskNotFoundError ())
0 commit comments