Q/A How to disable Job by default on startup? #158
-
|
This is for In-Memory mode Currently, from what I see, if I make a class with FunctionName (even without Cron expression), it automatically get's registered in Dashboard and in logic for auto-queue every minute. Is there a way only to "declare" job, but not trigger it until needed? Use case: I have 3 background hosts, 2 of them are running on demand with background jobs, 1 of the hosts is "head" (runs always 24/7). Then these jobs in all 3 hosts will get called automatically on startup, even if I will just declare it in this way, without cron expression: So, my question is: Is there any way, to simply declare jobs, but start/queue them on demand without auto-start? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Okay... Turns out it actually is NOT running by default on startup if you remove CronExpression... |
Beta Was this translation helpful? Give feedback.
Okay... Turns out it actually is NOT running by default on startup if you remove CronExpression...
For some reason piece of code was actually registering my job...