# Checking from container new "push"

**URL:** <https://forums.balena.io/t/checking-from-container-new-push/23475>\
**Category:** balenaOS\
**Created:** [August 2, 2019, 9:32pm UTC](https://forums.balena.io/t/checking-from-container-new-push/23475 "2019-08-02T21:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![romcioPaluszek](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@romcioPaluszek](https://forums.balena.io/u/romcioPaluszek)\
**Post date:** [August 2, 2019, 9:32pm UTC](https://forums.balena.io/t/checking-from-container-new-push/23475/1 "2019-08-02T21:32:06Z")

</div>

Is there a way how to check if a new push has been made? I would like to deploy balenaOS with PiJuice UPC. The device wakes up every hour, checks if there is internet access. If yes, then it checks if there are new containers on openBalena server. If no, then it uploads data to the server and goes to sleep. I need some way how to wait until new containers are downloaded and then send him to sleep.

Thanks

---

<div class="post-metadata">

**Author:** ![petrosagg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/petrosagg/32/84_2.png) [@petrosagg](https://forums.balena.io/u/petrosagg)\
**Post date:** [August 2, 2019, 9:35pm UTC](https://forums.balena.io/t/checking-from-container-new-push/23475/2 "2019-08-02T21:35:45Z")

</div>

You can use the supervisor API to get the /v1/device endpoint and check the `update_pending` key. [https://www.balena.io/docs/reference/supervisor/supervisor-api/#get-v1device](https://www.balena.io/docs/reference/supervisor/supervisor-api/#get-v1device)

---

<div class="post-metadata">

**Author:** ![petrosagg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/petrosagg/32/84_2.png) [@petrosagg](https://forums.balena.io/u/petrosagg)\
**Post date:** [August 2, 2019, 9:35pm UTC](https://forums.balena.io/t/checking-from-container-new-push/23475/3 "2019-08-02T21:35:51Z")

</div>

Is this what you’re looking for?

---

<div class="post-metadata">

**Author:** ![romcioPaluszek](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@romcioPaluszek](https://forums.balena.io/u/romcioPaluszek)\
**Post date:** [August 2, 2019, 9:41pm UTC](https://forums.balena.io/t/checking-from-container-new-push/23475/4 "2019-08-02T21:41:20Z")

</div>

Yes !!! This is what I need. Thank you.
