From 4f3a5c42313c75022aaad2bf23962ad9f944a8e1 Mon Sep 17 00:00:00 2001 From: Andrew Dickinson Date: Sat, 27 Jan 2024 17:04:43 -0500 Subject: [PATCH] Tweak entrypoint celery startup --- entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 964fb9dd3..a9ab470dc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,8 +11,10 @@ echo 'DB started' # It's okay to start Celery in the background and continue without waiting, even though "migrate" # might make DB changes we want to notify for since tasks are queued by Django Webhook and # are executed as soon as celery starts +# FIXME: This makes testing locally a bit awkward, since this isn't started by "manage.py runserver" +# maybe there's a way to do this better? echo 'Staring Celery Worker...' -celery -A meshdb worker -l INFO & +celery -A meshdb worker -l INFO --detach echo 'Running Migrations...' python manage.py migrate