From fffa654a60b5b9e3e2b7924426cc50a62b06a6e6 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 (cherry picked from commit f37d9bd60eb936b7797cd453d059d89533f58f21) --- 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 b999361cdb397..3ba552f80c169 100644 --- a/docs/src/main/asciidoc/scheduler-reference.adoc +++ b/docs/src/main/asciidoc/scheduler-reference.adoc @@ -302,6 +302,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