You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schedules can use a validation script to determine whether a scheduled run should execute. The validator receives the scheduled datetime and returns a boolean indicating whether to proceed.
275
+
276
+
The dynamic skip handler is useful for:
277
+
- Skipping runs on weekends, holidays, or specific dates
278
+
- Checking external conditions before execution (e.g., API availability, data freshness)
279
+
- Implementing custom scheduling logic beyond standard cron expressions
280
+
281
+
#### How it works
282
+
283
+
1. Configure a schedule with a dynamic skip handler script
284
+
2. Before the scheduled job executes, Windmill runs the handler script
285
+
3. The handler receives `scheduled_for` (ISO 8601 datetime string) as a parameter
286
+
4. If the handler returns `true`, the scheduled job executes normally
287
+
5. If the handler returns any other value, the job is skipped (marked as success with `skipped` flag)
288
+
6. If the handler throws an exception, normal error handling applies and the job fails
If the validation handler script is deleted or archived after the schedule is created, the schedule will fail at runtime with a clear error message indicating the handler script was not found.
315
+
316
+
:::
317
+
272
318
### Be notified every time a scheduled workflow has been executed
273
319
274
320
For scheduled flows, add a simple step to be notified about the execution of the scheduled flow.
0 commit comments