From 4e5105376d0d6f858bbbc3ca748da553341d5dc8 Mon Sep 17 00:00:00 2001 From: musketyr Date: Tue, 26 Nov 2024 17:54:56 +0100 Subject: [PATCH] notes about some jobs still might be executed --- docs/guide/src/docs/asciidoc/usage.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guide/src/docs/asciidoc/usage.adoc b/docs/guide/src/docs/asciidoc/usage.adoc index 18a30a66..abafd7b7 100644 --- a/docs/guide/src/docs/asciidoc/usage.adoc +++ b/docs/guide/src/docs/asciidoc/usage.adoc @@ -258,7 +258,7 @@ TIP: If https://github.com/agorapulse/micronaut-snitch[Micronaut Snitch] is pres == CLI Runner -You can run a single job from the command line using the `com.agorapulse.worker.runner.JobRunner` class as the main class. The arguments are the names of the jobs to run. All other jobs are disabled, even when enabled in the configuration. The application will run until all jobs are finished. +You can run a single job from the command line using the `com.agorapulse.worker.runner.JobRunner` class as the main class. The arguments are the names of the jobs to run. All other jobs are disabled, even when enabled in the configuration (see corner cases below). The application will run until all jobs are finished. [source,shell] .Run Job from CLI @@ -266,6 +266,8 @@ You can run a single job from the command line using the `com.agorapulse.worker. java -cp myapp-shadow.jar com.agorapulse.worker.runner.JobRunner sample-job other-job ---- +WARNING: In some corner cases, some unrelated jobs can still be executed if they have a very short delay or frequency if they are manually enabled in the configuration. Please, prefer annotation driven jobs over configuring them manually in the configuration to avoid this issue. + == Management You can use `jobs` management endpoint, by default located at `/jobs`, to see the status of all the jobs in the application.