Disable auto running for project
This commit is contained in:
parent
f49fa6d4c4
commit
0bd0c806da
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue