Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/administration/scanning-and-watcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ A manual scan can be scoped to specific platforms and a chosen subset of metadat

Configured via env vars (full table in [Scheduled Tasks](scheduled-tasks.md)):

| Variable | Default | Purpose |
| -------------------- | ----------- | ------------------------------------------------------------------------------------------------------------ |
| `SCAN_INTERVAL_CRON` | `0 0 * * *` | Cron expression for the scheduled library scan. Runs a **Quick** scan by default. |
| `SCAN_TIMEOUT` | `14400` | Hard cap in seconds: scans that exceed this are killed and logged. |
| `SCAN_WORKERS` | `1` | Concurrent worker processes for scanning; leave as auto unless you're tuning. |
| `SEVEN_ZIP_TIMEOUT` | `60` | Per-archive timeout in seconds for `.7z` extraction during scan; raise if scanning huge compressed ROM sets. |

To disable scheduled scans entirely, either unset the cron or set it to something unreachable (`SCAN_INTERVAL_CRON=0 0 31 2 *`).
| Variable | Default | Purpose |
| ----------------------- | ----------- | ------------------------------------------------------------------------------------------------------------ |
| `SCHEDULED_RESCAN_CRON` | `0 0 * * *` | Cron expression for the scheduled library scan. Runs a **Quick** scan by default. |
| `SCAN_TIMEOUT` | `14400` | Hard cap in seconds: scans that exceed this are killed and logged. |
| `SCAN_WORKERS` | `1` | Concurrent worker processes for scanning; leave as auto unless you're tuning. |
| `SEVEN_ZIP_TIMEOUT` | `60` | Per-archive timeout in seconds for `.7z` extraction during scan; raise if scanning huge compressed ROM sets. |

To disable scheduled scans entirely, either unset the cron or set it to something unreachable (`SCHEDULED_RESCAN_CRON=0 0 31 2 *`).

## Filesystem watcher

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/snippets/scheduled-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| Task | Type | Default schedule | Env var | Purpose |
| -------------------------- | --------- | ---------------- | -------------------------------------- | ----------------------------------------------------------------------- |
| Folder Scan | Scheduled | `0 0 * * *` | `SCAN_INTERVAL_CRON` | Rescan ROM library for new or changed files. |
| Folder Scan | Scheduled | `0 0 * * *` | `SCHEDULED_RESCAN_CRON` | Rescan ROM library for new or changed files. |
| Switch titleDB Fetch | Scheduled | `0 12 * * 0` | `SWITCH_TITLEDB_FETCH_INTERVAL_CRON` | Update Nintendo Switch game database used for matching. |
| LaunchBox Metadata Sync | Scheduled | `0 2 * * *` | `LAUNCHBOX_SYNC_INTERVAL_CRON` | Synchronize LaunchBox metadata cache. |
| Image Conversion | Scheduled | `0 3 * * *` | `IMAGE_CONVERSION_INTERVAL_CRON` | Convert media to WebP for serving. |
Expand Down
2 changes: 1 addition & 1 deletion scripts/gen_scheduled_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Folder Scan",
"type": "Scheduled",
"default_cron": "0 0 * * *",
"env_var": "SCAN_INTERVAL_CRON",
"env_var": "SCHEDULED_RESCAN_CRON",
"purpose": "Rescan ROM library for new or changed files.",
},
{
Expand Down
Loading