outposts: fix incorrect timeout for state cache

This commit is contained in:
Jens Langhammer 2020-12-16 12:14:34 +01:00
parent 040e148a73
commit c24d1b6b84
1 changed files with 1 additions and 2 deletions

View File

@ -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)