-
Notifications
You must be signed in to change notification settings - Fork 2
/
daily-flow.yaml
34 lines (30 loc) · 1.08 KB
/
daily-flow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 * * *
extend:
title: Schedule a flow every day at 6:30 AM
description: >
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.
tags:
- Schedule
- Trigger
- Variables
ee: false
demo: true
meta_description: 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.