From a5c73ec43672223e8f7000b704d009bc170117d0 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Mon, 2 Nov 2026 17:24:28 -0300 Subject: [PATCH] feat(updates): queue an update check on container startup Fresh installs no longer wait up to 12 hours for the first periodic check. --- docker/dev/django/start | 3 +++ docker/prod/django/start | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker/dev/django/start b/docker/dev/django/start index 9b03c88b..8211b14d 100644 --- a/docker/dev/django/start +++ b/docker/dev/django/start @@ -17,4 +17,7 @@ touch /tmp/migrations_complete python manage.py setup_users python manage.py setup_oauth +# Check for updates on startup instead of waiting for the next periodic run; never block boot on it +python manage.py procrastinate defer check_for_updates || true + exec python manage.py runserver 0.0.0.0:$INTERNAL_PORT diff --git a/docker/prod/django/start b/docker/prod/django/start index 71f0f0ca..bbd7caae 100644 --- a/docker/prod/django/start +++ b/docker/prod/django/start @@ -18,4 +18,7 @@ touch /tmp/migrations_complete python manage.py setup_users python manage.py setup_oauth +# Check for updates on startup instead of waiting for the next periodic run; never block boot on it +python manage.py procrastinate defer check_for_updates || true + exec gunicorn WYGIWYH.wsgi:application --bind 0.0.0.0:$INTERNAL_PORT --timeout 600