Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index: Schedule automatic library rescans #4251

Closed
lastzero opened this issue May 12, 2024 · 1 comment
Closed

Index: Schedule automatic library rescans #4251

lastzero opened this issue May 12, 2024 · 1 comment
Assignees
Labels
config Global Configuration, Initialization, and User Settings enhancement Refactoring, improvement or maintenance task feedback wanted Please let us know your thoughts released Available in the stable release

Comments

@lastzero
Copy link
Member

lastzero commented May 12, 2024

As an admin who wants their library to be periodically checked for changes, I want PhotoPrism to provide a config option for scheduling automatic library rescans, so I don't need to set up and maintain an external job runner that e.g. triggers rescans with the CLI commands that PhotoPrism provides.

Related Issues:

@lastzero lastzero added enhancement Refactoring, improvement or maintenance task config Global Configuration, Initialization, and User Settings labels May 12, 2024
@lastzero lastzero self-assigned this May 12, 2024
@lastzero
Copy link
Member Author

lastzero commented May 12, 2024

This has already been implemented as part of the changes for #4243 and can be tested with our latest development preview build available on Docker Hub. The relevant config options are:

Environment CLI Flag Default Description
PHOTOPRISM_INDEX_WORKERS, PHOTOPRISM_WORKERS --index-workers 4 maximum NUMBER of indexing workers, default depends on the number of physical cores
PHOTOPRISM_INDEX_SCHEDULE --index-schedule indexing SCHEDULE in cron format, e.g. "0 */3 * * *" for every 3 hours (leave empty to disable)
PHOTOPRISM_WAKEUP_INTERVAL --wakeup-interval 15m0s TIME between facial recognition, file sync, and metadata worker runs (1-86400s)
PHOTOPRISM_AUTO_INDEX --auto-index 300 delay before automatically indexing files in SECONDS (-1 to disable) when uploading files via WebDAV
PHOTOPRISM_AUTO_IMPORT --auto-import 180 delay before automatically importing files in SECONDS (-1 to disable) when uploading files via WebDAV

lastzero referenced this issue May 12, 2024
Note that this is "bleeding edge" functionality and that the newly added
config option PHOTOPRISM_BACKUP_RETAIN can be set, but does not have any
effect yet. Feedback welcome!

Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero lastzero added the please-test Ready for acceptance test label May 12, 2024
@lastzero lastzero changed the title Index: Allow scheduling of library rescans to avoid the need for external job runners Index: Add a config option for scheduling automatic library scans May 12, 2024
@lastzero lastzero changed the title Index: Add a config option for scheduling automatic library scans Index: Add a config option for scheduling automatic library rescans May 12, 2024
@lastzero lastzero added the feedback wanted Please let us know your thoughts label May 12, 2024
lastzero added a commit that referenced this issue May 14, 2024
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero lastzero changed the title Index: Add a config option for scheduling automatic library rescans Index: Schedule automatic library scans May 14, 2024
@lastzero lastzero changed the title Index: Schedule automatic library scans Index: Schedule automatic library rescans May 14, 2024
@graciousgrey graciousgrey added tested Changes have been tested successfully and removed please-test Ready for acceptance test labels May 22, 2024
@lastzero lastzero added released Available in the stable release and removed tested Changes have been tested successfully labels May 24, 2024
lastzero added a commit to photoprism/photoprism-docs that referenced this issue Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Global Configuration, Initialization, and User Settings enhancement Refactoring, improvement or maintenance task feedback wanted Please let us know your thoughts released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

2 participants