github-actions[bot] commented on code in PR #26879: URL: https://github.com/apache/doris/pull/26879#discussion_r1392282265
########## be/src/pipeline/pipeline_x/dependency.cpp: ########## @@ -21,10 +21,44 @@ #include <mutex> #include "common/logging.h" +#include "pipeline/pipeline_task.h" +#include "pipeline/pipeline_x/pipeline_x_task.h" #include "runtime/memory/mem_tracker.h" namespace doris::pipeline { +void Dependency::add_block_task(PipelineXTask* task) { + std::unique_lock<std::mutex> lc(_task_lock); + DCHECK(task->get_state() != PipelineTaskState::RUNNABLE); + DCHECK(avoid_using_blocked_queue(task->get_state())); + DCHECK(_blocked_task.empty() || _blocked_task[_blocked_task.size() - 1] != task) + << "Duplicate task: " << task->debug_string(); + _blocked_task.push_back(task); +} Review Comment: warning: method '_try_to_wake_up_task' can be made static [readability-convert-member-functions-to-static] be/src/pipeline/pipeline_x/dependency.h:102: ```diff - void _try_to_wake_up_task(); + static void _try_to_wake_up_task(); ``` ########## be/src/pipeline/pipeline_x/dependency.cpp: ########## @@ -294,6 +350,12 @@ return results; } Review Comment: warning: method 'set_probe_finished_children' can be made static [readability-convert-member-functions-to-static] be/src/pipeline/pipeline_x/dependency.h:779: ```diff - void set_probe_finished_children(int child_id); + static void set_probe_finished_children(int child_id); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org