# App lockfile or supervisor lockfile working too well

**URL:** <https://forums.balena.io/t/app-lockfile-or-supervisor-lockfile-working-too-well/4532>\
**Category:** Product support\
**Created:** [November 27, 2018, 5:27pm UTC](https://forums.balena.io/t/app-lockfile-or-supervisor-lockfile-working-too-well/4532 "2018-11-27T17:27:44Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![CameronDiver](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@CameronDiver](https://forums.balena.io/u/CameronDiver)\
**Post date:** [December 6, 2018, 5:38pm UTC](https://forums.balena.io/t/app-lockfile-or-supervisor-lockfile-working-too-well/4532/9 "2018-12-06T17:38:46Z")

</div>

@jason10  
It is possible to detect if a update is ready to apply while the lock has been taken by using the following endpoint on the supervisor api:

```bash
curl --header "Content-type:application/json" "$RESIN_SUPERVISOR_ADDRESS/v2/applications/state?apikey=$RESIN_SUPERVISOR_API_KEY"

```

which will return an object similar to:

```json
{
  "supervisortest": {
    "appId": 1011165,
    "commit": "42a5d01723cac00538fb10df5ea0a671",
    "services": {
      "main": {
        "status": "Downloaded",
        "releaseId": 688486,
        "downloadProgress": null
      }
    }
  }
}

```

What you’re looking for is the `Downloaded` status on the services.  
Let me know if this helps you!

---

_[View the full topic](https://forums.balena.io/t/app-lockfile-or-supervisor-lockfile-working-too-well/4532)._
