djangosnippets.org: Latest snippets tagged with 'queue'http://djangosnippets.org/tags/queue/2013-12-11T15:47:24.581181-06:00Decorator to execute a method only once
2013-12-11T15:47:24.581181-06:00atodorov-otbhttp://djangosnippets.org/snippets/3010/<p>Beware if using Amazon Simple Queue Service to execute Celery tasks which send email messages! Sometimes SQS messages are duplicated which results in multiple copies of the messages being sent. This is a simple decorator which uses a cache backend to prevent the task from executing twice in a specified …</p>
Freely redistributableEmail queue in DB
2010-04-19T02:33:21.560657-05:00fish2000http://djangosnippets.org/snippets/1993/<p>This is what I use to send simple status emails from my sites. Instead of a django.core.mail.send_mail call, which can take an irrritatingly, nondeterministically long time to return (regardless of error state), you can stow the emails in the database and rely on a separate interpreter process send them off …</p>
Freely redistributable