PublicHoliday
PublicHoliday
yaml
type: "io.kestra.plugin.core.condition.PublicHoliday"
Condition to allow events on public holidays.
Examples
Condition to allow events on public holidays.
yaml
- conditions:
- type: io.kestra.plugin.core.condition.PublicHoliday
country: FR
Conditions to allow events on work days.
yaml
- conditions:
- type: io.kestra.plugin.core.condition.Not
conditions:
- type: io.kestra.plugin.core.condition.PublicHoliday
country: FR
- type: io.kestra.plugin.core.condition.Weekend
Properties
date
- Type: string
- Dynamic: ✔️
- Required: ✔️
- Default:
{{ trigger.date }}
- Min length:
1
The date to test.
Can be any variable or any valid ISO 8601 datetime. By default, it will use the trigger date.
country
- Type: string
- Dynamic: ✔️
- Required: ❌
ISO 3166-1 alpha-2 country code. If not set, it uses the country code from the default locale.
It uses the Jollyday library for public holiday calendar that supports more than 70 countries.
subDivision
- Type: string
- Dynamic: ✔️
- Required: ❌
ISO 3166-2 country subdivision (e.g., provinces and states) code.
It uses the Jollyday library for public holiday calendar that supports more than 70 countries.
Was this page helpful?