Skip to content
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

Non-blocking submit for Task Scheduler #3081

Merged
merged 4 commits into from
Feb 27, 2020
Merged

Conversation

yycptt
Copy link
Contributor

@yycptt yycptt commented Feb 26, 2020

No description provided.

@yycptt yycptt requested review from yux0 and a team February 26, 2020 18:58
@coveralls
Copy link

coveralls commented Feb 26, 2020

Coverage Status

Coverage increased (+0.1%) to 67.24% when pulling 899fae2 on yycptt:non-blocking-submit into b196c3f on uber:master.

@yycptt yycptt requested a review from emrahs February 26, 2020 22:22
func (f *fifoTaskSchedulerImpl) Submit(task PriorityTask) error {
func (f *fifoTaskSchedulerImpl) TrySubmit(
task PriorityTask,
) (bool, error) {
f.metricsScope.IncCounter(metrics.ParallelTaskSubmitRequest)
sw := f.metricsScope.StartTimer(metrics.ParallelTaskSubmitLatency)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to differentiate the block and non-block methods latency?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed latency metric from non-blocking method. And Request metric is emitted only when the task is actually submitted.

common/task/weightedRoundRobinTaskScheduler.go Outdated Show resolved Hide resolved
@yycptt yycptt merged commit 32aa76a into uber:master Feb 27, 2020
@yycptt yycptt deleted the non-blocking-submit branch February 27, 2020 21:40
neil-xie added a commit that referenced this pull request Nov 1, 2022
neil-xie added a commit that referenced this pull request Nov 1, 2022
neil-xie added a commit that referenced this pull request Nov 16, 2022
neil-xie added a commit that referenced this pull request Nov 16, 2022
neil-xie added a commit that referenced this pull request Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants