Browse Source

correctly put timeout event

master
_ahmedbilal 3 years ago
parent
commit
d079acadf2
  1. 2
      etcd_wrapper.py

2
etcd_wrapper.py

@ -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…
Cancel
Save