ray.serve.schema.TaskProcessorAdapter.register_task_handle#

abstract TaskProcessorAdapter.register_task_handle(func: Callable, name: str | None = None)[source]#

Register a function as a task handler.

Parameters:
  • func – The function to register as a task handler.

  • name – Custom name for the task.