ovh / prescience-client

Desktop python client for using OVH Prescience service
Other
13 stars 1 forks source link

Fix miss websocket events when watching #27

Closed christophe-rannou closed 4 years ago

christophe-rannou commented 4 years ago

From time to time for very short tasks (such as building a manifest) the task might be done before the task watcher was actually connected to the websocket, hence missing the DONE update.

This PR fixes that by adding an initial check of the task status server side right after the websocket is started. This should prevent watch from being stuck.