App lockfile or supervisor lockfile working too well

@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:

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

which will return an object similar to:

{
  "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!