From f37d9bd60eb936b7797cd453d059d89533f58f21 Mon Sep 17 00:00:00 2001 From: Marco Schaub Date: Thu, 4 Jan 2024 15:57:50 +0000 Subject: [PATCH] Add hint for Scheduled.ApplicationNotRunning skip predicate --- docs/src/main/asciidoc/scheduler-reference.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/asciidoc/scheduler-reference.adoc b/docs/src/main/asciidoc/scheduler-reference.adoc index 66637ff1e9c97..26aaf73655c30 100644 --- a/docs/src/main/asciidoc/scheduler-reference.adoc +++ b/docs/src/main/asciidoc/scheduler-reference.adoc @@ -308,6 +308,8 @@ The main idea is to keep the logic to skip the execution outside the scheduled b TIP: A CDI event of type `io.quarkus.scheduler.SkippedExecution` is fired when an execution of a scheduled method is skipped. +TIP: To skip the scheduled executions while the application is starting up/shutting down, you can make use of the `io.quarkus.scheduler.Scheduled.ApplicationNotRunning` skip predicate. + [[non-blocking-methods]] === Non-blocking Methods