How to identify whether spring batch job is launched from controller or scheduler?

Viewed 25

I have a spring batch job which is run on scheduler. Also I have created a controller which can be involved to trigger the job. But the issue is, I am not able to identify whether the job is triggered from controller or scheduler. In job configuration I need to give different sql query as per to the job is invoked from controller or scheduler.

How this can be achieved?

0 Answers
Related