mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-22 15:02:23 +00:00
cf8d8cedd7
This commit changes a few things: * Pass `force` to `takeLock` step directly. This allows us to remove the `lockFn` used by app manager's action executors, setting takeLock as the main interface to interact with the update lock module. Note that this commit by itself will not pass tests, as no update locking occurs where it once did. This will be amended in the next commit. * Remove locking functions from doRestart & doPurge, as this is the only area where skipLock is required. * Remove `skipLock` interface, as it's redundant with the functionality of `force`. The only time `skipLock` is true is in doRestart/doPurge, as those API methods are already run within a lock function. We removed the lock function which removes the need for skipLock, and in the next commit we'll add locking as a composition step to replace the functionality removed here. * Remove some methods not in use, such as app manager's `stopAll`. Signed-off-by: Christina Ying Wang <christina@balena.io> |
||
---|---|---|
.. | ||
compose | ||
config | ||
device-api | ||
device-state | ||
lib | ||
.mocharc.js | ||
config.spec.ts | ||
db.spec.ts | ||
device-config.spec.ts | ||
device-state.spec.ts | ||
host-config.spec.ts | ||
network.spec.ts | ||
state-engine.spec.ts | ||
supervisor.spec.ts |