Skip to content

Commit

Permalink
feat: blueprint for schedule condition weekend (#33)
Browse files Browse the repository at this point in the history
* feat: blueprint for schedule condition weekend

* Update schedule-condition-weekend.yaml

---------

Co-authored-by: Will Russell <[email protected]>
  • Loading branch information
shrutimantri and wrussell1999 authored Jan 20, 2025
1 parent 9b2f9a4 commit 6509b82
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions schedule-condition-weekend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
id: schedule-condition-weekend
namespace: company.team

tasks:
- id: hello
type: io.kestra.plugin.core.log.Log
message: Demo for Weekend condition

triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 11 * * *"
conditions:
- type: io.kestra.plugin.core.condition.Weekend

extend:
title: Executes flow on schedule trigger with Weekend condition
description: >-
This trigger executes the flow at 11am every day with the schedule condition that the
trigger date should fall on a weekend, i.e. either on a Saturday or a Sunday.
With the Weenkend condition, you can enforce the condition for the flow to execute
only on a weekend.
tags:
- Schedule
- Trigger
ee: false
demo: true
meta_description: This flow executes on schedule trigger with Weekend condition.

0 comments on commit 6509b82

Please sign in to comment.