Back to Prefect

Task

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

3.6.30.dev3859 B
Original Source

prefect task

command
prefect task [OPTIONS] COMMAND [ARGS]...
<Info> Work with task scheduling. </Info>

prefect task serve

command
prefect task serve [OPTIONS] [ENTRYPOINTS]...
<Info> Serve the provided tasks so that their runs may be submitted to and executed in the engine. </Info> <AccordionGroup> <Accordion title="Arguments" defaultOpen> <ResponseField name="ENTRYPOINTS..." type="string"> The paths to one or more tasks, in the form of `./path/to/file.py:task_func_name`. </ResponseField> </Accordion> <Accordion title="Options" defaultOpen> <ResponseField name="--module"> The module(s) to import the tasks from. </ResponseField> <ResponseField name="--limit"> The maximum number of tasks that can be run concurrently. Defaults to 10. </ResponseField> </Accordion> </AccordionGroup>