[Core] Publish gcs server failure to drivers. (#11265)

* Done.

* Fixed.
This commit is contained in:
SangBin Cho
2020-10-08 08:59:31 -07:00
committed by GitHub
parent 37fa86f9a0
commit 174bef56d4
3 changed files with 47 additions and 2 deletions
+10
View File
@@ -227,3 +227,13 @@ def error_pubsub():
p = init_error_pubsub()
yield p
p.close()
@pytest.fixture()
def log_pubsub():
p = ray.worker.global_worker.redis_client.pubsub(
ignore_subscribe_messages=True)
log_channel = ray.gcs_utils.LOG_FILE_CHANNEL
p.psubscribe(log_channel)
yield p
p.close()