ray.serve.schema.TaskProcessorConfig#
- class ray.serve.schema.TaskProcessorConfig(*, queue_name: str, adapter: str | Callable = 'ray.serve.task_processor.CeleryTaskProcessorAdapter', adapter_config: Any, max_retries: int | None = 3, failed_task_queue_name: str | None = None, unprocessable_task_queue_name: str | None = None)[source]#
Bases:
BaseModel
Task processor config. You can use it to configure the task processor for your Serve application.
PublicAPI (alpha): This API is in alpha and may change before becoming stable.
Methods
Create a new model by parsing and validating input data from keyword arguments.
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Duplicate a model, optionally choose which fields to include, exclude and change.
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
Generate a JSON representation of the model,
include
andexclude
arguments as perdict()
.Try to update ForwardRefs on fields based on this Model, globalns and localns.
Attributes