mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
Remove new gcs code from legacy Ray codepath (#2329)
This commit is contained in:
committed by
Robert Nishihara
parent
178346fa16
commit
f21d783e6d
@@ -1162,13 +1162,9 @@ void redis_task_table_subscribe(TableCallbackData *callback_data) {
|
||||
/* TASK_CHANNEL_PREFIX is defined in ray_redis_module.cc and must be kept in
|
||||
* sync with that file. */
|
||||
const char *TASK_CHANNEL_PREFIX = "TT:";
|
||||
#if !RAY_USE_NEW_GCS
|
||||
for (auto subscribe_context : db->subscribe_contexts) {
|
||||
#else
|
||||
/* In the new code path, subscriptions currently go through the
|
||||
* primary redis shard. */
|
||||
for (auto subscribe_context : {db->subscribe_context}) {
|
||||
#endif
|
||||
for (auto subscribe_context : db->subscribe_contexts) {
|
||||
int status;
|
||||
if (data->local_scheduler_id.is_nil()) {
|
||||
/* TODO(swang): Implement the state_filter by translating the bitmask into
|
||||
|
||||
Reference in New Issue
Block a user