From a37885041b442b381ae58a9322b8bc8256992b7a Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 16 Sep 2019 13:30:45 +0100 Subject: Add a lock to the task assignment While it shouldn't take very long, this should nonetheless avoid race conditions on the task assignment logic. Following the discussion here: https://stackoverflow.com/q/18213619 --- boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.sh') diff --git a/boot.sh b/boot.sh index 93e64d2..c15b1c4 100644 --- a/boot.sh +++ b/boot.sh @@ -13,4 +13,4 @@ while true; do sleep 5 done -exec gunicorn -b :7831 --access-logfile - --error-logfile - annotate_change:app +exec gunicorn -b :7831 --preload --access-logfile - --error-logfile - annotate_change:app -- cgit v1.2.3