i'm starting a project in spring batch, my plan is like the following:
- create spring boot app
- expose an api to submit a job(without executing), that will return the job execution id to be able to track the progress of the job later by other clients
- create a scheduler for running a job - i want to have a logic that will decide how many jobs i can run at any moment.
the issue is that my batch service may receive many requests for starting jobs, and i want to put the job exeuctuion in a pending status first, then a scheduler later on will check the jobs in pending status and depending on my logic will decide if it should run another set jobs.
is that possible to do in spring batch, or i need to implement it from scratch ?