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?