-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improvement](executor) Support task group schedule in pipeline engine #17615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
|
||
class TaskGroup; | ||
|
||
class TaskGroupEntity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What 's the difference between TaskGroupEntity
and TaskGroup
?
How about combining both to TaskGroup
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TaskGroupEntity is a sched entity, maybe a scan task, exec task or task group in the future.
class TaskGroupEntity { | ||
public: | ||
explicit TaskGroupEntity(taskgroup::TaskGroup* rs) : _rs(rs) {} | ||
void push_back(pipeline::PipelineTask* task); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s better to use smart pointer instead of raw pointer
// TODO pipeline task group | ||
TaskGroupPtr get_or_create_task_group(uint64_t id); | ||
|
||
static constexpr uint64_t DEFAULT_RG_ID = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using enum class
to define resource group id?
4cefb2d
to
6d3a9ef
Compare
clang-tidy review says "All clean, LGTM! 👍" |
56d80ff
to
053e473
Compare
clang-tidy review says "All clean, LGTM! 👍" |
3 similar comments
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TeamCity pipeline, clickbench performance test result: |
run p0 |
1 similar comment
run p0 |
c067e55
to
9b81302
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
90d4127
to
fd93d03
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
Pls complete the description |
Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...