Skip to content

Commit

Permalink
Add hint for Scheduled.ApplicationNotRunning skip predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrDerb committed Jan 4, 2024
1 parent 620aa9c commit f37d9bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/main/asciidoc/scheduler-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 314 in docs/src/main/asciidoc/scheduler-reference.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.HeadingPunctuation] Do not use end punctuation in headings. Raw Output: {"message": "[Quarkus.HeadingPunctuation] Do not use end punctuation in headings.", "location": {"path": "docs/src/main/asciidoc/scheduler-reference.adoc", "range": {"start": {"line": 314, "column": 1}}}, "severity": "INFO"}

Check warning on line 314 in docs/src/main/asciidoc/scheduler-reference.adoc

View workflow job for this annotation

GitHub Actions / Linting with Vale

[vale] reported by reviewdog 🐶 [Quarkus.Headings] Use sentence-style capitalization in '1.6. Non-blocking Methods'. Raw Output: {"message": "[Quarkus.Headings] Use sentence-style capitalization in '1.6. Non-blocking Methods'.", "location": {"path": "docs/src/main/asciidoc/scheduler-reference.adoc", "range": {"start": {"line": 314, "column": 1}}}, "severity": "INFO"}

Expand Down

0 comments on commit f37d9bd

Please sign in to comment.