fix: [crawler] fix is_splash_manager_connected #133

This commit is contained in:
Terrtia 2021-12-03 15:36:47 +01:00
parent eb6f60f033
commit ebcffd4b95
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -1067,7 +1067,7 @@ def is_splash_manager_connected(delta_check=30):
return res == 'True'
def update_splash_manager_connection_status(is_connected, req_error=None):
r_cache.hset('crawler:splash:manager', 'connected', is_connected)
r_cache.hset('crawler:splash:manager', 'connected', str(is_connected))
r_cache.hset('crawler:splash:manager', 'last_check', int(time.time()))
if not req_error:
r_cache.hdel('crawler:splash:manager', 'error')