Prefect flows and tasks

Tasks are the most basic unit of work in Prefect.

A task performs certain function or operation.

The way to enable a task in Prefect is by using the @task decorator.

A flow is a combination of several tasks where one can specify a certain order of execution.

Flow will contain one or more tasks and even one or more flows.

Flows within flows are referred to as sub-flows.

Similar to tasks, flows are enabled by the @flow decorator.

Leave a comment