PublicHolidayCondition​Public​Holiday​Condition

PublicHolidayCondition PublicHolidayCondition

yaml
type: "io.kestra.plugin.core.condition.PublicHolidayCondition"

Condition to allow events on public holidays.

Examples

Condition to allow events on public holidays.

yaml
- conditions:
    - type: io.kestra.plugin.core.condition.PublicHolidayCondition
      country: FR

Conditions to allow events on work days.

yaml
- conditions:
    - type: io.kestra.plugin.core.condition.NotCondition
      conditions:
        - type: io.kestra.plugin.core.condition.PublicHolidayCondition
          country: FR
        - type: io.kestra.plugin.core.condition.WeekendCondition

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.

Outputs

Definitions

Was this page helpful?