Decorators

class ray

Bases: object

static task(python_callable: Callable[[...], Any] | None = None, multiple_outputs: bool | None = None, **kwargs: Any) airflow.decorators.base.TaskDecorator

Decorator to define a task that submits a Ray job.

Parameters:
  • python_callable – The callable function to decorate.

  • multiple_outputs – If True, will return multiple outputs.

  • kwargs – Additional keyword arguments.

Returns:

The decorated task.