Skip to content

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

Closed
blakeli0 wants to merge 1 commit intomainfrom
fix-watchdog
Closed

fix: Watchdog wait for the current run to complete on shutdown.#1337
blakeli0 wants to merge 1 commit intomainfrom
fix-watchdog

Conversation

@blakeli0
Copy link
Copy Markdown
Contributor

@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.

1 participant