Train task run in server.
Periodically I would like to trigger a status check and update some UI button.
Basically I have Train start, status_check and stop buttons
When I click start… we switch and enable stop button. After sometime the actual training is finished.
However server provides a method to query the status. How to do it behind the scene… I mean how to simulate the behaviour of auto click for status button for every N seconds.