mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-08 12:20:23 +00:00
Merge pull request #84 from resin-io/83-set-idle-after-download
Set status to Idle when download is over
This commit is contained in:
commit
d6f70a38a4
@ -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…
x
Reference in New Issue
Block a user