mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 06:57:49 +00:00
Set status to Idle when download is over
This commit is contained in:
parent
c72ed80c77
commit
5961be6ffb
@ -1,3 +1,4 @@
|
|||||||
|
* On download start, set download_progress to 0. On finish, set state to Idle [Pablo]
|
||||||
* Set GOARM separately for each architecture [Pablo]
|
* Set GOARM separately for each architecture [Pablo]
|
||||||
* Add armv5 (armel) build [Trong]
|
* Add armv5 (armel) build [Trong]
|
||||||
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth]
|
* Add OOM protection for the supervisor container, openvpn and connmand [Praneeth]
|
||||||
|
@ -134,7 +134,7 @@ fetch = (app) ->
|
|||||||
device.updateState(download_progress: progress.percentage)
|
device.updateState(download_progress: progress.percentage)
|
||||||
.then ->
|
.then ->
|
||||||
logSystemEvent(logTypes.downloadAppSuccess, app)
|
logSystemEvent(logTypes.downloadAppSuccess, app)
|
||||||
device.updateState(download_progress: null)
|
device.updateState(status: 'Idle', download_progress: null)
|
||||||
docker.getImage(app.imageId).inspectAsync()
|
docker.getImage(app.imageId).inspectAsync()
|
||||||
.catch (err) ->
|
.catch (err) ->
|
||||||
logSystemEvent(logTypes.downloadAppError, app, err)
|
logSystemEvent(logTypes.downloadAppError, app, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user