Skip to content

Commit

Permalink
Tweak entrypoint celery startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Dickinson committed Jan 27, 2024
1 parent efdc89f commit 4f3a5c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f3a5c4

Please sign in to comment.