# Displaying an "Updates ongoing" message un balena-browser

**URL:** <https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392>\
**Category:** Product support\
**Tags:** browser, raspberrypi4\
**Created:** [November 10, 2022, 9:45am UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392 "2022-11-10T09:45:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibaut](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Thibaut](https://forums.balena.io/u/Thibaut)\
**Post date:** [November 10, 2022, 9:45am UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392/1 "2022-11-10T09:45:52Z")

</div>

Hello,

Is there a way to be notified of an on-going update ?

In a multi-container context, I would like for our browser web-app display a message indicating that we are upgrading and that our service is currently unavailable. Of course, if the browser is also updated, we can’t do that, but we plan to pin the browser sha256 image version to avoid unnecessary updates.

I’d like to execute a script/whatever when the updates begin. This script will emit a message on our local RabbitMQ instance. Do you know if that’s possible ?

---

<div class="post-metadata">

**Author:** ![nitishagar](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nitishagar/32/4967_2.png) [@nitishagar](https://forums.balena.io/u/nitishagar)\
**Post date:** [November 10, 2022, 1:12pm UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392/2 "2022-11-10T13:12:10Z")

</div>

Hi,  
When you say:

> notified of an on-going update

I assume its an app update. I am not sure if we can pin a release for one of the container. But depending on the behavior from an update, we could also look at communication between containers to relay this information.

We had an IoT clinic around that topic which might be of help: [https://www.youtube.com/watch?v=eHLW7CS3t4E](https://www.youtube.com/watch?v=eHLW7CS3t4E)

---

<div class="post-metadata">

**Author:** ![Thibaut](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Thibaut](https://forums.balena.io/u/Thibaut)\
**Post date:** [November 14, 2022, 9:32am UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392/4 "2022-11-14T09:32:44Z")

</div>

Yes but how can I “know” that the supervisor is going to install a release, and when it finished ?

---

<div class="post-metadata">

**Author:** ![Thibaut](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Thibaut](https://forums.balena.io/u/Thibaut)\
**Post date:** [November 16, 2022, 1:33pm UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392/5 "2022-11-16T13:33:05Z")

</div>

We plan to test the following:

- Acquire the “Update Lock” as soon as our components starts
- Using the SDK, we’ll regulary check if an update has been downloading and is pending.
- When an update is available, we release the lock and put our app in “Updating in progress” mode on the display.
- Once the update has been done, we go back to normal state and re-acquire the lock.

Do you think this is fine ?

---

<div class="post-metadata">

**Author:** ![Thibaut](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Thibaut](https://forums.balena.io/u/Thibaut)\
**Post date:** [November 23, 2022, 4:14pm UTC](https://forums.balena.io/t/displaying-an-updates-ongoing-message-un-balena-browser/365392/6 "2022-11-23T16:14:39Z")

</div>

We tried this solution which worked fine regarding our requirements for updates displaying, however it locks the supervisor which prevent a lot of actions to be done: rebooting, stopping services, etc.

I can’t believe we are the only ones wanting to display an “Update in progress” message to our users… how are we supposed to do this ?
