devo-ps / pipelines

Build pipelines for automation, deployment, testing...
MIT License
119 stars 13 forks source link

Polling logic needs a review #110

Open JuhaS opened 4 years ago

JuhaS commented 4 years ago

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:

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.