Spring Batch requires unique job parameters for its execution.so you can add the current time as a job parameter
Map<String, JobParameter> confMap = new HashMap<String, JobParameter>(); confMap.put("time", new JobParameter(System.currentTimeMillis())); JobParameters jobParameters = new JobParameters(confMap); jobLauncher.run(springCoreJob, jobParameters); |
Showing posts with label multiple jobs. Show all posts
Showing posts with label multiple jobs. Show all posts
Monday, 30 December 2013
org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException: A job instance already exists and is complete for parameters
Labels:
hadoop,
multiple jobs,
spring batch
Subscribe to:
Posts (Atom)