Hi Diana, Sorry it's taken me a ridiculous amount of time to get back to you on this!
On Tuesday, 27 June 2017 1:59:23 AM CEST Diana Thayer wrote: > This is a work-in-progress solution to issue 11197 within layerindex-web: > adding asynchronous task execution. > I used RabbitMQ and Celery. I'm still working with Paul Eggleton on adding > install instructions for RabbitMQ to > the site's Dockerfile. > > Previously, when a user submitted a layer, Django would synchronously send > emails to users able to publish layers, > such that if an email bounced or otherwise failed, the user submitting the > layer would see an error. > This patch sends those emails as asynchronous tasks, so any sending errors > don't reach the user submitting a layer. I had a chance to try your patch out today, although I had to apply it partially - I figured a good test would just be the email part. I installed rabbitmq and ensured it got started. I started the web interface and submitted a dummy layer, and the email sent as expected. I then tried killing my local SMTP server and the layer submission returned an error page, which is what happened previously - it looks to me as if the sending is still being done synchronously. The celery worker isn't reporting anything so I can only assume the django app is not trying to connect to it. I've pushed just the changes I applied to a new branch here: http://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/log/?h=paule/celery Any idea what's going wrong? Did I mess up in applying the changes, or misconfigure something else? Thanks, Paul -- Paul Eggleton Intel Open Source Technology Centre -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto