Update strategy

Hello, I am working on an update strategy with Electron & node, Firstly, I want a notification to appear on the users screen that says a download is in progress(Lock the update with a lockfile):
Is there a better way to do this other than polling the device download_progress through the API?

Then I want the user to be able to click update when they are finished with their task(that I can do by deleting the lockfile and the container will restart)

I will also have a chronjob to delete the lockfiles overnight to enable automatic updates.

My second question is, if there is an update downloaded, and the user restarts the device instead of deleting the lockfile, will the updated happen?

Moving this to paid support