Kestra Concepts

To start building workflows in Kestra, we need to understand a number of concepts.

  • Flow - a container for tasks and their orchestration logic.
  • Tasks - the steps within a flow.
  • Inputs - dynamic values passed to the flow at runtime.
  • Outputs - pass data between tasks and flows.
  • Triggers - mechanism that automatically starts the execution of a flow.
  • Execution - a single run of a flow with a specific state.
  • Variables - key–value pairs that let you reuse values across tasks.
  • Plugin Defaults - default values applied to every task of a given type within one or more flows.
  • Concurrency - control how many executions of a flow can run at the same time.

While there are more concepts used for building powerful workflows, these are the ones we're going to use to build our data pipelines.

The flow 01_hello_world.yaml showcases all of these concepts inside of one workflow:

  • The flow has 5 tasks: 3 log tasks and a sleep task
  • The flow takes an input called name.
  • There is a variable that takes the name input to generate a full welcome message.
  • An output is generated from the return task and is logged in a later log task.
  • There is a trigger to execute this flow every day at 10am.
  • Plugin Defaults are used to make both log tasks send their messages as ERROR level.
  • We have a concurrency limit of 2 executions. Any further ones made while 2 are running will fail.

Resources

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.