Properly delete keys from Redis

This commit is contained in:
Will Nilges 2022-08-31 23:24:37 -04:00
parent 5a28460db0
commit 19b508fe2e
3 changed files with 15 additions and 6 deletions

View file

@ -243,12 +243,7 @@ def cleanup_vnc_task():
ones every couple of minutes
https://github.com/ComputerScienceHouse/proxstar/issues/153
"""
print('Clearing vnc targets')
with open(app.config['WEBSOCKIFY_TARGET_FILE'], 'w') as targets:
targets.truncate()
# FIXME (willnilges): This... might be working...?
try:
requests.post(
'https://{}/console/cleanup'.format(app.config['SERVER_NAME']),