Wake Up interval cannot be longer than 3600s #3702
Replies: 3 comments 12 replies
-
This works as intended. Face recognition works asynchronously. So if you don't have a background worker running more than once a day, you may run into various issues. You can find various discussions on GitHub about this, and there may also be a note in our docs, for example in the "Known Issues" section. Please only submit bug reports for confirmed issues. Thank you very much! 🙏 |
Beta Was this translation helpful? Give feedback.
-
Indeed, the worker wakes up every 15 minutes just to see there's nothing to do. This check will wake up drives which would otherwise be sleeping, causing wear and energy consumption. The worker should only be scheduled for a wakeup if there is actually something to do OR someone specificially asks for a regular "preventive" wakeup because they do asynchronous modifications to the database. Taking down the server entirely is not really a viable path with multiple independent (albeit rarely active) users. |
Beta Was this translation helpful? Give feedback.
-
Actually I am using an SSD, but I think the wear argument applies to those as well. I'm certainly not disputing actual and potential needs to run the worker, and your examples make a lot of sense. All that I noticed on my relatively small instance were regular wakeups which didn't do anything productive. This one I captured the other day as I wasn't sure if there wasn't any incremental improvement say on the face detection being done:
In terms of efficiency, this simply doesn't feel right to me. Bear with me. I am biased by age, and probably also by the experience of working a lot in the embedded and real-time space. But I just hate cycles go to waste. :-) |
Beta Was this translation helpful? Give feedback.
-
I've set thePHOTOPRISM_WAKEUP_INTERVAL to 84600s so the workers would only start once a day to reduce power consumption (just in case the workers need to spin up the drives). Did this as stated in the documentation, but i just discovered that i get an error message when trying to tag new faces that the wake up interval cannot be longer than 3600s. I assume either the documentation needs to be changed or this is some kind of bug.
Easily reproducable by setting PHOTOPRISM_WAKEUP_INTERVAL to 86400s and try to name a face that has not been recognized or is new to the library.
I'm running the most recent docker version on TrueNAS SCALE on a modified HP Z440, 8-Core CPU and 64GB RAM. Container is running on SSD, Photos are stored on HDD.
Beta Was this translation helpful? Give feedback.
All reactions