NicolasLM / spinach

Modern Redis task queue for Python 3
https://spinach.readthedocs.io
BSD 2-Clause "Simplified" License
63 stars 4 forks source link

Ensure flask context for job_failure handlers #41

Closed bigjools closed 4 months ago

bigjools commented 4 months ago

For the flask_spinach object, similarly to the existing job_started and job_finished signal handlers, there's now also a job_failed handler that subclasses can use. These handlers are in place to ensure that the app context is pushed before the handlers are called.