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

HH-128854 add barrier for synchronize up workers and consul registration #507

Merged
merged 1 commit into from
May 12, 2021

Conversation

nicholasgribanov
Copy link
Member

No description provided.

@nicholasgribanov nicholasgribanov force-pushed the HH-128854 branch 2 times, most recently from 1ede6ac to e99bdf2 Compare May 5, 2021 13:53
timeout = time.time() + options.init_workers_timeout_sec
while init_workers_count_down.value > 0:
if time.time() > timeout:
raise Exception(f'workers did not started after {options.init_workers_timeout_sec} seconds')
Copy link
Contributor

Choose a reason for hiding this comment

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

тут можно поспать мс 100, вообще говоря

Copy link
Member Author

Choose a reason for hiding this comment

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

а зачем? Чтобы процесс не крутился в активном состоянии постоянно?

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.

3 participants