mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-18 16:36:13 +00:00
fix: [crawler] fix is_splash_manager_connected #133
This commit is contained in:
parent
eb6f60f033
commit
ebcffd4b95
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue