correctly put timeout event
This commit is contained in:
parent
b198048ed8
commit
d079acadf2
1 changed files with 1 additions and 1 deletions
|
@ -89,4 +89,4 @@ def create_timeout_event(timeout, key_prefix, etcd_client):
|
|||
time.sleep(timeout)
|
||||
_value = {"status": "TIMEOUT", "last_timeout": datetime.utcnow().isoformat()}
|
||||
_key = path.join(f"{key_prefix}", "TIMEOUT")
|
||||
etcd_client.put(_key, _value, value_in_json=True)
|
||||
etcd_client.put(_key.encode("utf-8"), json.dumps(_value))
|
||||
|
|
Loading…
Reference in a new issue