Giter Club home page Giter Club logo

Comments (2)

medmunds avatar medmunds commented on May 25, 2024

Hmm. I think Anymail does need to re-cast that requests exception as an AnymailRequestsAPIError (in anymail.backends.BaseRequests.post_to_esp). That's required for proper fail_silently handling.

Of course, that'll still leave you with a flurry of (different) exceptions, if you're not using fail_silently.

There are several Django packages that maintain an email queue and robustly retry failed sends at a later time. Anymail should be compatible with most of them (any that let you change their email backend).

  • I personally use the old Pinax django-mailer, which runs in Django's DB and works fine at my relatively-small scale. (Also, it seems to be getting maintained again -- yay!).
  • Celery is popular for managing any sort of task queues in Django, and there are a bunch of Django email queues based on it.
  • I'm sure there are others. (Including some interesting explorations using Django channels.)

Queue-and-resend functionality isn't built into Anymail, because there are different approaches that satisfy different needs, and the other packages cover the tradeoffs well. (Also, Anymail doesn't itself maintain any state or run any async tasks.)

from django-anymail.

cralston0 avatar cralston0 commented on May 25, 2024

Yep! I wouldn't propose a queueing system for Anymail -- edited the issue to clarify that.

This is already being fired from a Celery task where we catch most errors to turn them into a another attempt after a delay. This one bubbled up though since it was new.

from django-anymail.

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.