-
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 not (#31)
* feat: blueprint for schedule condition not * Update schedule-condition-not.yaml --------- Co-authored-by: Will Russell <[email protected]>
- Loading branch information
1 parent
850a841
commit fff74f1
Showing
1 changed file
with
35 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,35 @@ | ||
id: schedule-condition-not | ||
namespace: company.team | ||
|
||
tasks: | ||
- id: hello | ||
type: io.kestra.plugin.core.log.Log | ||
message: Demo for Not condition | ||
|
||
triggers: | ||
- id: schedule | ||
type: io.kestra.plugin.core.trigger.Schedule | ||
cron: "0 11 * * *" | ||
conditions: | ||
- type: io.kestra.plugin.core.condition.Not | ||
conditions: | ||
- type: io.kestra.plugin.core.condition.DayWeek | ||
date: "{{ trigger.date }}" | ||
dayOfWeek: MONDAY | ||
|
||
extend: | ||
title: Executes flow on schedule trigger with Not condition | ||
description: >- | ||
This trigger executes the flow at 11am every day with the schedule condition that the | ||
trigger date should not fall on a Monday. In other words, the flow will execute | ||
every day at 11am except on Mondays. | ||
With the Not condition, you can put a negation of the condition. In the given flow, we | ||
are negating the condition of the DayWeek of the trigger date being a Monday. | ||
tags: | ||
- Schedule | ||
- Trigger | ||
ee: false | ||
demo: true | ||
meta_description: This flow executes on schedule trigger with Not condition. |