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

update: check pipeline queue before scrape, try again after 1 second if is not valid to push #1757

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

catdogpandas
Copy link
Contributor

No description provided.

if (ProcessQueueManager::GetInstance()->IsValidToPush(mQueueKey)) {
return true;
} else {
this->DelayExecTime(1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个加一秒是固定的吗?不需要可配置?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

应该不需要可配置,这部分执行的条件是处理或发送出现背压,延迟调度1s、5s效果都是一样的,进行毫秒级别的延迟可能队列仍旧是满的,所以就固定成1s了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants