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

fix: Watchdog wait for the current run to complete on shutdown. #1337

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blakeli0
Copy link
Collaborator

@blakeli0 blakeli0 commented Feb 8, 2023

This is an enhancement to googleapis/gax-java#1890. Watchdog wait for the current run to complete on shutdown. Using Phaser to track the lifecycle of each run() execution, wait for the Phaser to proceed to next phase(which is terminated phase in our case) in awaitTermination and use phaser.isTerminated() to determine if Watchdog is terminated or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant