You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the 'Multiple' backend. As in Resque we delegate all queries to
the first backend in the list.
To use:
from pyres import failure
from pyres.failure.base import BaseBackend
from pyres.failure.multiple import MultipleBackend
from pyres.failure.redis import RedisBackend
class CustomBackend(BaseBackend):
def save(self, resq):
print('Custom backend')
failure.backend = MultipleBackend
failure.backend.classes = [RedisBackend, CustomBackend]
0 commit comments