Back to Prefect

task

docs/v3/api-ref/python/prefect-cli-task.mdx

3.6.30.dev3832 B
Original Source

prefect.cli.task

Task command — native cyclopts implementation.

Work with task scheduling.

Functions

task_serve <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/task.py#L29" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
task_serve(*args: Any, **kwargs: Any) -> Any

serve <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/task.py#L49" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
serve(entrypoints: Annotated[Optional[list[str]], cyclopts.Parameter(help='The paths to one or more tasks, in the form of `./path/to/file.py:task_func_name`.')] = None)

Serve the provided tasks so that their runs may be submitted to and executed in the engine.