Ashby Stale Open Job Posting Sentinel
List Ashby job postings, alert Slack when publicly listed ones have been open longer than a threshold, and log a governance audit trail.
Invert schedule conditions in Kestra with a negated `when` expression.
id: schedule-condition-not
namespace: company.team
triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 11 * * *"
when: "{{ not (dayOfWeek(trigger.date) == 'MONDAY') }}"
tasks:
- id: hello
type: io.kestra.plugin.core.log.Log
message: Demo for Not condition
Schedule a flow to run daily while excluding specific days, using a when Pebble expression on the Schedule trigger to negate a day-of-week check. This blueprint fires every day at 11am and skips Mondays, giving you a clean, declarative way to build "run on all days except X" calendars without writing extra cron expressions or guard logic inside your tasks.
io.kestra.plugin.core.trigger.Schedule trigger uses the cron expression 0 11 * * * to evaluate the flow at 11am every day.when property holds the expression {{ not (dayOfWeek(trigger.date) == 'MONDAY') }}, which negates the day-of-week check.dayOfWeek(trigger.date) resolves to the day name for the current trigger date, and the comparison against MONDAY is wrapped in not(...).hello task (io.kestra.plugin.core.log.Log) writes a confirmation message to the execution logs.when expression, not just day of week.Cron alone can express "every day at 11am," but it cannot cleanly express "every day except Monday" without awkward multi-line expressions. Kestra solves this declaratively: the trigger's when property evaluates a Pebble expression on every candidate run, not(...) inverts any boolean check inside it, and the entire schedule is versioned YAML you can review and diff. You also get automatic retries, full execution lineage, and visibility into both runs and skipped evaluations, capabilities a raw scheduler does not provide.
This blueprint references no secrets.
dayOfWeek(...) check for isWeekend(trigger.date), a specific date comparison, or a time window to exclude other periods.and/or inside the when expression, then wrap the whole thing in not(...) to invert a combined rule.Log task with your real workload (ingestion, transformation, notifications).when expression to a io.kestra.plugin.core.trigger.Flow trigger's dependsOn entry to skip downstream runs on matching days.