Blueprints

Schedule a flow every day at 6:30 AM

Source

yaml
id: daily-flow
namespace: company.team

tasks:
  - id: log
    type: io.kestra.plugin.core.log.Log
    message: It's {{ trigger.date ?? taskrun.startDate | date("HH:mm") }}

triggers:
  - id: schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: 30 6 * * *

About this blueprint

Variables Trigger Schedule

This example shows how to schedule a flow at 6:30 AM every day. - If the flow is triggered manually, it will log the start date of the task. - If the flow is triggered by a regular schedule, it will log the start date of the schedule trigger. The date() function formats the output to display hours and minutes. You can use that function to format the date based on your needs.

Log

Schedule

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra