]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixes flower not respecting its config location, and a little more info to the user
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Fri, 3 Feb 2023 22:19:22 +0000 (14:19 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Wed, 8 Feb 2023 16:18:11 +0000 (08:18 -0800)
docker/flower-conditional.sh

index 04319a8e3adcfc0d53920f26c0051e3b5d0db0f1..f8719e0fdbedf4bdc16f99330f4796271f0e80a8 100644 (file)
@@ -3,5 +3,10 @@
 echo "Checking if we should start flower..."
 
 if [[ -n  "${PAPERLESS_ENABLE_FLOWER}" ]]; then
-       celery --app paperless flower
+       # Small delay to allow celery to be up first
+       echo "Starting flower in 5s"
+       sleep 5
+       celery --app paperless flower --conf=/usr/src/paperless/src/paperless/flowerconfig.py
+else
+       echo "Not starting flower"
 fi