Blueprints

Executes flow on schedule trigger with DayWeekInMonth condition

Source

yaml
id: schedule-condition-dayweekinmonth
namespace: company.team

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

triggers:
  - id: schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 11 * * *"
    conditions:
      - type: io.kestra.plugin.core.condition.DayWeekInMonth
        date: "{{ trigger.date }}"
        dayOfWeek: SATURDAY
        dayInMonth: LAST

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 the last Saturday of the month. Hence, the flow will actually run only once in a month, i.e. on the last Saturday of the month at 11am. With DayWeekInMonth condition, you can enforce the condition for the flow to run on only a particular day of the week relative to the current month.

Log

Schedule

Day Week In Month

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra