outposts: fix incorrect timeout for state cache
This commit is contained in:
parent
040e148a73
commit
c24d1b6b84
|
@ -42,9 +42,8 @@ def outpost_service_connection_state(connection_pk: Any):
|
|||
.select_subclasses()
|
||||
.first()
|
||||
)
|
||||
cache.delete(f"outpost_service_connection_{connection.pk.hex}")
|
||||
state = connection.fetch_state()
|
||||
cache.set(connection.state_key, state, timeout=0)
|
||||
cache.set(connection.state_key, state, timeout=None)
|
||||
|
||||
|
||||
@CELERY_APP.task(bind=True, base=MonitoredTask)
|
||||
|
|
Reference in a new issue