From 2e671480c78e744ee77574feea83c1b816981c08 Mon Sep 17 00:00:00 2001 From: Diana Thayer Date: Thu, 24 Aug 2017 22:20:30 -0700 Subject: Asynchronous email notifications, task execution This patch adds asynchronous task execution using a Celery backend and RabbitMQ task queue, so that the layer submission process to proceed even in the event that sending the notification email fails, and establishing an asynchronous execution mechanism that we can use in the future e.g. for triggering parse operations from the web UI. This pertains to bug 11197: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11197 It updates the README to reflect the installation and configuration of a basic RabbitMQ setup, adds a 'tasks.py' file to contain task definitions, updates the 'edit_layer_view' function to send emails to administrators about new and updated layers asynchronously, modifies the 'settings.py' to include a default configuration for a RabbitMQ connection, and updates the Dockerfile to start a Celery worker alongside the Gunicorn daemon. Fixes [YOCTO #11197]. Signed-off-by: Diana Thayer Signed-off-by: Paul Eggleton --- requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'requirements.txt') diff --git a/requirements.txt b/requirements.txt index f80e5d46d4..7cd741b54b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +celery==3.1.25 Django==1.8.17 django-cors-headers==1.1.0 django-nvd3==0.9.7 -- cgit 1.2.3-korg