Overrides the process-wide default BackendFactory. Useful to point
every Queue/Worker/FlowProducer at a different datastore (e.g. the PostgreSQL
backend) without threading a factory through every constructor — notably so
the existing test suite can run unchanged against another backend.
Pass no argument (or undefined) to reset back to the Redis backend.
Overrides the process-wide default BackendFactory. Useful to point every Queue/Worker/FlowProducer at a different datastore (e.g. the PostgreSQL backend) without threading a factory through every constructor — notably so the existing test suite can run unchanged against another backend.
Pass no argument (or
undefined) to reset back to the Redis backend.