Polling logic needs a review
JuhaS opened this issue · 0 comments
JuhaS commented
Currently the polling mechanism to check pipeline run status is not working reliably. Often when you click "run" on long running task the UI will just show it in "running" mode forever, although it was already completed.
Reproduce the issue:
- Run a long-running pipeline
- Refresh the page (shows "running")
- Wait until task should be finished
- Expected: Spinner stops spinning
- Actual: Spinner spins forever
The cause for this is because the app doesn't poll the status after page is refreshed leaving the pipeline to spin forever. In page load there should be logic to check last runs of each pipeline and if it is in running state then set up polling interval until it is finished.