This commit is contained in:
Bryan Van Deusen
2025-08-05 20:45:12 -04:00
+3 -2
View File
@@ -13,6 +13,9 @@ CHECK_INTERVAL = 10 # seconds
app = create_app()
from sqlalchemy.exc import OperationalError
import time
def monitor_and_import():
with app.app_context():
print("[Image Importer] Monitoring for trigger flag...")
@@ -84,7 +87,5 @@ def monitor_and_import():
print(f"[Image Importer] Failed to remove thumbnail flag: {e}")
time.sleep(CHECK_INTERVAL)
if __name__ == '__main__':
monitor_and_import()