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

feat(hotkey): collector can be terminated by timeout #625

Merged
merged 15 commits into from
Oct 22, 2020

Conversation

Smityz
Copy link
Contributor

@Smityz Smityz commented Oct 20, 2020

We can set config hotkey_collector_max_work_time to determine how long will the hotkey detection takes.
If the running time is greater than the hotkey_collector_max_work_time, the hotkey collection will be terminated automatically.

Config changes

[pegasus.server]
+ max_seconds_to_detect_hotkey = 150

@neverchanje neverchanje added the type/config-change Added or modified configuration that should be noted on release note of new version. label Oct 20, 2020
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
src/server/hotkey_collector.h Outdated Show resolved Hide resolved
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
tangyanzhao and others added 3 commits October 20, 2020 17:01
@Smityz Smityz closed this Oct 20, 2020
@Smityz Smityz deleted the hotkey-kill-himself branch October 20, 2020 09:24
@Smityz Smityz restored the hotkey-kill-himself branch October 20, 2020 09:25
@Smityz Smityz reopened this Oct 20, 2020
neverchanje
neverchanje previously approved these changes Oct 20, 2020
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
src/server/hotkey_collector.h Outdated Show resolved Hide resolved
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
Co-authored-by: Yingchun Lai <405403881@qq.com>
levy5307
levy5307 previously approved these changes Oct 21, 2020
src/server/hotkey_collector.h Outdated Show resolved Hide resolved
src/server/hotkey_collector.cpp Outdated Show resolved Hide resolved
@acelyc111 acelyc111 merged commit e17d5c7 into apache:master Oct 22, 2020
@neverchanje neverchanje mentioned this pull request Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/config-change Added or modified configuration that should be noted on release note of new version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants