I have written a batch job using spring batch and I executed it as task in spring cloud data flow admin, My problem is when I launch the task, It cannot be canceled or paused, It runs at once and the status gets completed:
,
It could be that you're running a batch-job that completes rapidly.
Perhaps you could have a sample to mimic the behavior of a long-running batch-job (eg: a job that runs for 5mins or more); with that type of an application, once after the launch, you'd be able to switch to the "Jobs" tab to select the option "Stop the job" to stop the currently running batch-job.
Here's the visual toggle for reference: