Subscribe to supervisor api application state

I know I can query the supervisor api for app download state (status, downloadprogress, etc) via https://www.balena.io/docs/reference/supervisor/supervisor-api/#get-v2applicationsstate

Is there a way to have this information pushed via webhook, or is polling the best way to obtain it (every 10 seconds or so)?

Hi, unfortunately at the moment polling is the only option for this. Webhooks were requested before and is a feature that was being discussed internally. Will ask around if we have anything to share about progress or some sort of timeline if any at this point.

Ok, good to know, thanks!

Hi there, just to add to my colleague’s reply, we haven’t made progress yet regarding webhooks for the supervisor. We also don’t have a timeline in mid at this point, but you can follow progress by checking this GitHub issue: https://github.com/balena-io/balena-supervisor/issues/1150 you can track