Skip to content

[Fix #1496] Closing managed channel#1497

Merged
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1496
Jun 29, 2026
Merged

[Fix #1496] Closing managed channel#1497
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1496

Conversation

@fjtirado

Copy link
Copy Markdown
Collaborator

Fix #1496


public class GrpcExecutor implements CallableTask {

public static final String GRPC_CHANNEL_PROVIDER = "grpcChannelProvider";

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is public on purpose so upstream can resuse without copy pasting the string value

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses Issue #1496 by ensuring gRPC ManagedChannel instances created for task execution are explicitly shut down rather than left for eventual GC, reducing noisy shutdown/GC-related logs.

Changes:

  • Inlines gRPC channel resolution/creation into GrpcExecutor (removing GrpcChannelResolver).
  • Adds a finally shutdown path to close ManagedChannel instances after scheduling the gRPC call.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcExecutor.java Creates or injects a gRPC channel and attempts to shut down managed channels to avoid leak/log pollution.
impl/grpc/src/main/java/io/serverlessworkflow/impl/executors/grpc/GrpcChannelResolver.java Removes the previous channel resolver helper (logic moved into GrpcExecutor).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Signed-off-by: fjtirado <ftirados@ibm.com>
Copilot AI review requested due to automatic review settings June 29, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@fjtirado
fjtirado merged commit 3e95b5a into open-workflow-specification:main Jun 29, 2026
3 checks passed
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.

Closing grpc managedChannel

3 participants