
Core Plugins and tasks Weekend
CertifiedAllow events on weekends.
Core Plugins and tasks Weekend
Certified
Allow events on weekends.
Renders a date (defaults to the trigger timestamp) and passes only if it falls on Saturday or Sunday.
Accepts ISO-8601 date/time strings; uses the rendered timezone to determine the day.
yaml
type: io.kestra.plugin.core.condition.WeekendExamples
Trigger the flow only on weekend, i.e. on Saturdays and Sundays.
yaml
id: schedule_condition_weekend
namespace: company.team
tasks:
- id: log_message
type: io.kestra.plugin.core.log.Log
message: "This flow will execute only on weekends at 11:00 am."
triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 11 * * *"
conditions:
- type: io.kestra.plugin.core.condition.Weekend
Properties
date string
Default
{{ trigger.date }}The date to test.
Can be any variable or any valid ISO 8601 datetime. By default, it will use the trigger date.