Skip to content

Commit

Permalink
feat: blueprint for schedule condition publicholiday (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutimantri authored Jan 20, 2025
1 parent 6509b82 commit 8489ba2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions schedule-condition-publicholiday.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
id: schedule-condition-publicholiday
namespace: company.team

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

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

extend:
title: Executes flow on schedule trigger with PublicHoliday condition
description: >-
This trigger executes the flow at 11am every day with the schedule condition that the
trigger date should fall on a public holiday of France, i.e. the flow will execute only
on public holidays in France.
With the PublicHoliday condition, you can enforce the condition for the flow to execute
only on public holidays for a specific country. The PublicHoliday condition uses the
[Jollyday](https://github.com/focus-shift/jollyday) library for public holiday calendar
that supports more than 70 countries.
tags:
- Schedule
- Trigger
ee: false
demo: true
meta_description: This flow executes on schedule trigger with PublicHoliday condition.

0 comments on commit 8489ba2

Please sign in to comment.