Closed waleedhammam closed 4 years ago
The key added in redis has a timeout. So it will eventually go away.
@zaibon I see the redis key timeout is set to 120 sec, we only wait for 75 sec so we at least we should make them match,no ?
-m
flag when you start kosmos to overcome that.
@xmonader the same with me, still have to wait a 120 seconds
Also if the master process died..
we will get an error during retrieving the data cause bcdb redis server dead. it could be in myjobs, .. etc
well it turns out the problem only happens when background=True
When we try to start 3bot server again when the key is still in redis, it thinks that the server is still running, so configmanager : startupcmds uses bcdb model client where bcdb redis socket is not up so leads to fail.
so suggesting running bcdb socket at early stage, and before each bcdb usage we check it's up to determine master state or not
Verified
How to reproduce
the problem here is 3bot server sets a key in redis called
"threebot.starting"
but if this key is not well cleaned it will cause the server to stuck in loading