PublicHolidayCondition​Public​Holiday​Condition

PublicHolidayCondition PublicHolidayCondition

yaml
type: "io.kestra.core.models.conditions.types.PublicHolidayCondition"

Condition to allow events on public holidays.

Examples

Condition to allow events on public holidays.

yaml
- conditions:
    - type: io.kestra.core.models.conditions.types.PublicHolidayCondition
      country: FR

Conditions to allow events on work days.

yaml
- conditions:
    - type: io.kestra.core.models.conditions.types.NotCondition
      conditions:
        - type: io.kestra.core.models.conditions.types.PublicHolidayCondition
          country: FR
        - type: io.kestra.core.models.conditions.types.WeekendCondition

Properties

date

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default:
  • 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.