Questions tagged [spring-batch-job-monitoring]

62 questions
8
votes
7 answers

How to launch Spring Batch Job Asynchronously

I have followed the spring batch doc and couldn't get my job running Asynchronously. So I am running the Job from a web container and the job will be triggered via a REST end point. I wanted to get the JobInstance ID to pass it in response before…
rram
  • 2,004
  • 5
  • 24
  • 37
5
votes
1 answer

Spring batch: Retry job if does not complete in particular time

I am working on a Spring batch application where I have used RetryTemplate with SimpleRetryPolicy. In this application, ItemProcessor usually takes 30-35 mins to complete a particular task. But sometimes, it takes from than 2hrs to complete that…
3
votes
1 answer

In spring batch how can we move the processed files to another folder, I am using MultiResourceItemReader and chunk processing

In Spring batch application how can we move files from BatchFileDir folder to a destination folder as each file gets processed. There would be a bunch of files in BatchFileDir folder so I am using MultiResourceItemReader. I am also following the…
3
votes
1 answer

Table "BATCH_JOB_INSTANCE" not found: org.h2.jdbc.JdbcSQLException

I am trying to run my application using the embedded h2 db. I get the following error: Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE…
EpsilonTal
  • 437
  • 4
  • 20
3
votes
1 answer

Spring batch job parameters are not overriding even if I change in job parameter validator

I've a job parameter validator where I've mentioned compulsory and optional parameters. I run the batch and it executes correctly. @Bean public JobParametersValidator validator() { String[] compulsoryParameters; //here I've created my…
nmkyuppie
  • 1,456
  • 1
  • 14
  • 30
3
votes
2 answers

How do I kickoff a batch job when input file arrives?

We have Spring4 and Spring Batch 3 and our app consumes CSV files as input file. Currently we kick off the jobs manually from the command line, using CommandLineJobRunner with parms, including the name of the file to process. I want to kick off…
JamesD
  • 679
  • 10
  • 36
2
votes
1 answer

Restarting a Spring batch job after app server failure or spring batch repository DB failure?

When spring batch DB failure happens or server is shut down, a spring batch job which was running at that time will be in a unknown started state. In spring batch admin, we will not see an option to restart the job. Hence we are not able to resume…
M. Vignesh
  • 31
  • 3
1
vote
1 answer

Spring batch step read_count, write_count and commit_count keep on increasing without any rollbacks or skips

I am investigating a spring batch job developed by someone else. Each step reads from the database in its reader, transforms the read JPA entities to DTOs in processor and the writer does several operations on each of these DTOs that may involve…
1
vote
1 answer

Spring Batch Test Single Job

I am trying to write Integration test for spring batch aplication , in my project there are approx 10+jobs I want to run only a single job but unable to achieve any…
Vipul Pandey
  • 1,507
  • 11
  • 20
1
vote
2 answers

need to create a dashboard to monitor the status of spring batch job

I need to create a dashboard to monitor the status of the spring batch jobs those jobs get executed by shell script. so I thought of getting the batch status from spring batch tables using rest Api like that and display that data using some UI…
1
vote
1 answer

Get status of running worker nodes at regular intervals in spring batch deployer partition handler

I am using deployer partition handler for remote partitioning in spring batch. I want to get the status of each worker node at regular intervals and display it to the user. ( Like heartbeats ). Is there any approach to achieve this ?
1
vote
1 answer

Springboot+Job Framework

My requirement is whenever we call certain RestAPI from UI/Postman, At backend it should trigger JOB that perform several operations/task. Example: Assume some POST Rest API is invoked - It should invoke "Identify-JOB"(performs several activities)-…
1
vote
1 answer

Spring Batch read enormous data from Rest web service

I need to process data from Rest web service. the following basic exemple is : import org.springframework.batch.item.ItemReader; import org.springframework.http.ResponseEntity; import org.springframework.web.client.RestTemplate; import…
1
vote
1 answer

Understanding JProfiler Threads

I'm working on a Spring Batch Application where it is fetching data from the Oracle database. It contains around 20L of data. I implemented AsynchronousTaskExecutor with a concurrency limit of 20, the throttle limit is 10. For data source it is -…
1
vote
2 answers

Spring Batch Job Stop Using jobOperator

I have Started my job using jobLauncher.run(processJob,jobParameters); and when i try stop job using another request jobOperator.stop(jobExecution.getId()); then get exeption…
Sandip Solanki
  • 704
  • 1
  • 8
  • 15
1
2 3 4 5