From b098090b44ab4d6c496442313d81d985102596eb Mon Sep 17 00:00:00 2001 From: Marco Schaub Date: Thu, 4 Jan 2024 15:57:14 +0000 Subject: [PATCH] Ad 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..01bd688d81fa5 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 scheduled executions while Quarkus is shutting down, your can make use of the `Scheduled.ApplicationNotRunning.class` skip predicate. + [[non-blocking-methods]] === Non-blocking Methods