-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: blueprint for schedule condition dayweekinmonth (#30)
* feat: blueprint for schedule condition dayweekinmonth * Update schedule-condition-dayweekinmonth.yaml --------- Co-authored-by: Will Russell <[email protected]>
- Loading branch information
1 parent
a350059
commit 850a841
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
id: schedule-condition-dayweekinmonth | ||
namespace: company.team | ||
|
||
tasks: | ||
- id: hello | ||
type: io.kestra.plugin.core.log.Log | ||
message: Demo for DayWeekInMonth condition | ||
|
||
triggers: | ||
- id: schedule | ||
type: io.kestra.plugin.core.trigger.Schedule | ||
cron: "0 11 * * *" | ||
conditions: | ||
- type: io.kestra.plugin.core.condition.DayWeekInMonth | ||
date: "{{ trigger.date }}" | ||
dayOfWeek: SATURDAY | ||
dayInMonth: LAST | ||
|
||
extend: | ||
title: Executes flow on schedule trigger with DayWeekInMonth condition | ||
description: >- | ||
This trigger executes the flow at 11am every day with the schedule condition that the | ||
trigger date should fall on the last Saturday of the month. Hence, the flow will | ||
actually run only once in a month, i.e. on the last Saturday of the month at 11am. | ||
With DayWeekInMonth condition, you can enforce the condition for the flow to run on | ||
only a particular day of the week relative to the current month. | ||
tags: | ||
- Schedule | ||
- Trigger | ||
ee: false | ||
demo: true | ||
meta_description: This flow executes on schedule trigger with DayWeekInMonth condition. |