mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:27:56 +08:00
[Streaming] Build fix (#10233)
This commit is contained in:
@@ -51,6 +51,8 @@ namespace ray {
|
||||
|
||||
class CoreWorker;
|
||||
|
||||
// If you change this options's definition, you must change the options used in
|
||||
// other files. Please take a global search and modify them !!!
|
||||
struct CoreWorkerOptions {
|
||||
// Callback that must be implemented and provided by the language-specific worker
|
||||
// frontend to execute tasks and return their results.
|
||||
|
||||
@@ -479,6 +479,7 @@ class StreamingWorker {
|
||||
StreamingWorker(const std::string &store_socket, const std::string &raylet_socket,
|
||||
int node_manager_port, const gcs::GcsClientOptions &gcs_options)
|
||||
: test_suite_(nullptr), peer_actor_handle_(nullptr) {
|
||||
// You must keep it same with `src/ray/core_worker/core_worker.h:CoreWorkerOptions`
|
||||
CoreWorkerOptions options = {
|
||||
WorkerType::WORKER, // worker_type
|
||||
Language::PYTHON, // langauge
|
||||
@@ -499,6 +500,8 @@ class StreamingWorker {
|
||||
_7), // task_execution_callback
|
||||
nullptr, // check_signals
|
||||
nullptr, // gc_collect
|
||||
nullptr, // spill_objects
|
||||
nullptr, // restore_spilled_objects
|
||||
nullptr, // get_lang_stack
|
||||
nullptr, // kill_main
|
||||
true, // ref_counting_enabled
|
||||
|
||||
@@ -223,6 +223,7 @@ class StreamingQueueTestBase : public ::testing::TestWithParam<uint64_t> {
|
||||
}
|
||||
STREAMING_LOG(INFO) << "Sub process: writer.";
|
||||
|
||||
// You must keep it same with `src/ray/core_worker/core_worker.h:CoreWorkerOptions`
|
||||
CoreWorkerOptions options = {
|
||||
WorkerType::DRIVER, // worker_type
|
||||
Language::PYTHON, // langauge
|
||||
@@ -242,6 +243,8 @@ class StreamingQueueTestBase : public ::testing::TestWithParam<uint64_t> {
|
||||
nullptr, // task_execution_callback
|
||||
nullptr, // check_signals
|
||||
nullptr, // gc_collect
|
||||
nullptr, // spill_objects
|
||||
nullptr, // restore_spilled_objects
|
||||
nullptr, // get_lang_stack
|
||||
nullptr, // kill_main
|
||||
true, // ref_counting_enabled
|
||||
|
||||
Reference in New Issue
Block a user