- Migration 0006: colonne watcher_enabled
- Crate notify pour surveillance FS temps réel (FSEvents/inotify)
- Watcher redémarré toutes les 30s si config change
- Détection instantanée création/modification/suppression
- Création job immédiate quand fichier détecté
- API: support watcher_enabled dans UpdateMonitoringRequest
- Backoffice: toggle Watcher avec indicateur ⚡
- Fonctionne en parallèle du scheduler auto-scan
Usage: Activer Watcher + Auto-scan pour réactivité max
6 lines
245 B
SQL
6 lines
245 B
SQL
-- Migration: Ajout du watcher de fichiers
|
|
|
|
ALTER TABLE libraries
|
|
ADD COLUMN IF NOT EXISTS watcher_enabled BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
COMMENT ON COLUMN libraries.watcher_enabled IS 'Active le watcher de fichiers en temps reel (notify)'; |