Disable auto running for project

This commit is contained in:
YuCheng Hu 2020-04-14 10:10:51 -04:00
parent f49fa6d4c4
commit 0bd0c806da
1 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,6 @@
package com.ossez.covid19.service.batch;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.beans.factory.annotation.Autowired;
@ -44,8 +42,8 @@ public class BatchApplication implements CommandLineRunner {
System.out.println(arg);
}
JobParameters jobParameters =
new JobParametersBuilder().addString("JobID", String.valueOf(System.currentTimeMillis())).toJobParameters();
jobLauncher.run(cloudClean, jobParameters);
// JobParameters jobParameters =
// new JobParametersBuilder().addString("JobID", String.valueOf(System.currentTimeMillis())).toJobParameters();
// jobLauncher.run(cloudClean, jobParameters);
}
}