Comments (6)
Could you give me an example of how this should work?
from django-celery.
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.
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.
This is actually in place now (part of 2.1.2), does it work well for everybody?
from django-celery.
Cheers for merging it, have it on production now, and its fantastic.
from django-celery.
Great! Closing now then, thanks to the awesome mixcloud guys.
from django-celery.
Related Issues (20)
- djcelerymon: AttributeError: type object 'Command' has no attribute 'option_list'
- Migrate to github actions from travis HOT 2
- djcelery released a task that has been deleted
- Migrate from djcelery to django_celery_results HOT 6
- Tasks being executed even without djcelery
- incompatibility with celery HOT 1
- Must used `"setuptools<58.0.0"` to install because of `anyjson` HOT 1
- celery-beat process make the CPU usage too high HOT 2
- Some tests misusing assertTrue for comparisons
- The "http://celeryproject.org/" site is gone? HOT 2
- django-celery doesn't work in django 4.0 HOT 5
- Changing instances of ugettext, ugettext_lazy, ungettext, and force_unicode for Django 4.0 HOT 2
- Django celery with redis broker executing same task indefinitely
- This error occurred when I started celery worker
- `pip install django-celery` gives error HOT 4
- Unrecoverable error in Celery worker: ReadOnlyError with Redis backend
- Error loading Celery application with Django module
- celery cannot connect to postgresql HOT 2
- celery and django-celery version do not match,show syntaxError HOT 3
- I use celery in the Django project, but why does celery keep increasing threads?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-celery.