mirror of
https://github.com/wassname/ray.git
synced 2026-08-09 12:20:09 +08:00
[xray] Add error table and push error messages to driver through node manager. (#2256)
* Fix documentation indentation. * Add error table to GCS and push error messages through node manager. * Add type to error data. * Linting * Fix failure_test bug. * Linting. * Enable one more test. * Attempt to fix doc building. * Restructuring * Fixes * More fixes. * Move current_time_ms function into util.h.
This commit is contained in:
committed by
Philipp Moritz
parent
6bf48f47bc
commit
ff2217251f
@@ -61,14 +61,6 @@ extern RedisChainModule module;
|
||||
return RedisModule_ReplyWithError(ctx, (MESSAGE)); \
|
||||
}
|
||||
|
||||
// NOTE(swang): The order of prefixes here must match the TablePrefix enum
|
||||
// defined in src/ray/gcs/format/gcs.fbs.
|
||||
static const char *table_prefixes[] = {
|
||||
NULL, "TASK:", "TASK:", "CLIENT:",
|
||||
"OBJECT:", "ACTOR:", "FUNCTION:", "TASK_RECONSTRUCTION:",
|
||||
"HEARTBEAT:",
|
||||
};
|
||||
|
||||
/// Parse a Redis string into a TablePubsub channel.
|
||||
TablePubsub ParseTablePubsub(const RedisModuleString *pubsub_channel_str) {
|
||||
long long pubsub_channel_long;
|
||||
@@ -128,8 +120,8 @@ RedisModuleKey *OpenPrefixedKey(RedisModuleCtx *ctx,
|
||||
<< "This table has no prefix registered";
|
||||
RAY_CHECK(prefix >= TablePrefix::MIN && prefix <= TablePrefix::MAX)
|
||||
<< "Prefix must be a valid TablePrefix";
|
||||
return OpenPrefixedKey(ctx, table_prefixes[static_cast<long long>(prefix)],
|
||||
keyname, mode, mutated_key_str);
|
||||
return OpenPrefixedKey(ctx, EnumNameTablePrefix(prefix), keyname, mode,
|
||||
mutated_key_str);
|
||||
}
|
||||
|
||||
RedisModuleKey *OpenPrefixedKey(RedisModuleCtx *ctx,
|
||||
|
||||
Reference in New Issue
Block a user