Git Product home page Git Product logo

Comments (6)

ask avatar ask commented on June 26, 2024

Could you give me an example of how this should work?

from django-celery.

matclayton avatar matclayton commented on June 26, 2024

Django by default provides an email sending system, with pluggable backends. This allows app developers to configure different methods of sending email, which is especially useful for AppEngine and various cloud providers.

What is probably a far better solution however is to tie into the new django logging system

http://code.djangoproject.com/ticket/12012

I believe this is going in trunk next week, and django will use it as the default logging mechanic for 500's and other errors, maybe celery should use it instead of emailing errors, allowing the developer to choose the desired method of reporting.

from django-celery.

leknarf avatar leknarf commented on June 26, 2024

I'd like to see support for the django email backends as well. Custom defined backends are useful for AppEngine, like matclayton said, but the django provided console and file backends (which write out emails to stdout or disk) are convenient for development.

Django-celery could leverage the django infrastructure by using the mail_admin() function in django.core.mail instead of the custom mail_admin() function in celery.utils.mail. The two already have the same signature, so using the django version when available should be straightforward.

Using the new django logging system is a better forward looking solution, but that would be a larger change.

from django-celery.

ask avatar ask commented on June 26, 2024

This is actually in place now (part of 2.1.2), does it work well for everybody?

from django-celery.

matclayton avatar matclayton commented on June 26, 2024

Cheers for merging it, have it on production now, and its fantastic.

from django-celery.

ask avatar ask commented on June 26, 2024

Great! Closing now then, thanks to the awesome mixcloud guys.

from django-celery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.