Skip to content

Commit

Permalink
Force default value
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-yves-monnet committed Jul 3, 2024
1 parent ba2d8f0 commit 90fd5a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/io/camunda/cherry/runner/JobRunnerFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ public class JobRunnerFactory {
*/
Map<String, Running> mapRunning = new HashMap<>();
@Value("${cherry.runners.embeddedrunner:true}")
private Boolean executeEmbeddedRunner;
private Boolean executeEmbeddedRunner = Boolean.TRUE;

@Value("${cherry.runners.pingrunner:true}")
private Boolean executePingRunner;
private Boolean executePingRunner= Boolean.FALSE;

public void startAll() {

Expand Down Expand Up @@ -125,6 +126,7 @@ public void stopAll() {
public void resumeAllRunners() {
// get the list from the storage
List<AbstractRunner> listRunners = runnerFactory.getAllRunners(new StorageRunner.Filter().isActive(true));
logger.info("Start executeEmbeddedRunner:{} executePingRunner:{}",executeEmbeddedRunner, executePingRunner );
if (Boolean.FALSE.equals(executeEmbeddedRunner)) {
logger.info("Don't start the EmbeddedWorker");

Expand Down

0 comments on commit 90fd5a4

Please sign in to comment.