Source
yaml
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
About this blueprint
Trigger Schedule
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 library for public holiday calendar that supports more than 70 countries.
More Related Blueprints