Skip to content

Commit

Permalink
0003589: Initial load extract job should check file.sync.enabled
Browse files Browse the repository at this point in the history
parameter
  • Loading branch information
erilong committed May 31, 2018
1 parent 6ef72b6 commit c9da386
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -23,6 +23,7 @@
import static org.jumpmind.symmetric.job.JobDefaults.EVERY_10_SECONDS;

import org.jumpmind.symmetric.ISymmetricEngine;
import org.jumpmind.symmetric.common.ParameterConstants;
import org.jumpmind.symmetric.service.ClusterConstants;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

Expand All @@ -41,7 +42,9 @@ public JobDefaults getDefaults() {

@Override
public void doJob(boolean force) throws Exception {
engine.getFileSyncExtractorService().queueWork(force);
if (engine.getParameterService().is(ParameterConstants.FILE_SYNC_ENABLE)) {
engine.getFileSyncExtractorService().queueWork(force);
}
engine.getDataExtractorService().queueWork(force);
}
}

0 comments on commit c9da386

Please sign in to comment.