lifespan=on is actually not required on Flask config level.

This commit is contained in:
Fabio Manganiello 2023-05-07 16:30:41 +02:00
parent 692180c653
commit f81e9061a3
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -247,7 +247,6 @@ class HttpBackend(Backend):
), 'The HTTP backend only works if backed by a Redis bus' ), 'The HTTP backend only works if backed by a Redis bus'
application.config['redis_queue'] = self.bus.redis_queue application.config['redis_queue'] = self.bus.redis_queue
application.config['lifespan'] = 'on'
application.secret_key = self._get_secret_key() application.secret_key = self._get_secret_key()
kwargs = { kwargs = {
'bind': f'{self.bind_address}:{self.port}', 'bind': f'{self.bind_address}:{self.port}',