Not able to call run method
<p>When I am running my Batch Application Program(below one), it gets inside the execute method firstly, and then whenever it tries to make an instance of CoreTask() it is not hitting the run method in the CoreTask class, Is there anything wrong?</p>

<pre><code>public class PDSBatchTask extends Task {

    public TaskResponse execute() {
        try {
            Runnable coreTask = new CoreTask();
            ScheduledFuture&lt;?&gt; scheduledFuture = Executors.newScheduledThreadPool(1).scheduleWithFixedDelay(coreTask, 0, 10, TimeUnit.MILLISECONDS);

            return new TaskResponse(
                    PDSTestingBatchExitCodeEnum.EXIT_CODE_SUCCESS);
        } catch (Exception e) {

        } 
    }

    private static final class CoreTask implements Runnable {
            // When I put a breakpoint here, it doesn't hit the run method.
            public void run() {
                CommandExecutor commandExecutor = CommandExecutor.getInstance();
                commandExecutor.runNextCommand();
            }
        }

}
</code></pre>
