Skip to content

.Net: Processes: Hook up uninitialization for Steps in Local Runtime#10825

Merged
esttenorio merged 10 commits intomicrosoft:mainfrom
esttenorio:estenori/processes/localRuntimeStepInit
Mar 13, 2025
Merged

.Net: Processes: Hook up uninitialization for Steps in Local Runtime#10825
esttenorio merged 10 commits intomicrosoft:mainfrom
esttenorio:estenori/processes/localRuntimeStepInit

Conversation

@esttenorio
Copy link
Copy Markdown
Contributor

@esttenorio esttenorio commented Mar 5, 2025

Description

In Processes, in Local Runtime, there is currently no equivalent of OnDeactivateAsync(in dapr actors).
Adding hook up to have this functionality in Steps in LocalRuntime.

This hookup also allows properly supporting graceful uninitialization in the new ProxyStep components to close properly connections/clean up resources

Fixes #10282

Contribution Checklist

@markwallace-microsoft markwallace-microsoft added the .NET Issue or Pull requests regarding .NET code label Mar 5, 2025
@github-actions github-actions Bot changed the title Processes: Hook up uninitialization for Steps in Local Runtime .Net: Processes: Hook up uninitialization for Steps in Local Runtime Mar 5, 2025
@esttenorio esttenorio moved this to Backlog in Semantic Kernel Mar 6, 2025
@esttenorio esttenorio self-assigned this Mar 6, 2025
@esttenorio esttenorio marked this pull request as ready for review March 6, 2025 18:20
@esttenorio esttenorio requested a review from a team as a code owner March 6, 2025 18:20
Comment thread dotnet/src/Experimental/Process.LocalRuntime/LocalStep.cs Outdated
Comment thread dotnet/src/Experimental/Process.Abstractions/KernelProcessStep.cs Outdated
Comment thread dotnet/src/Experimental/Process.LocalRuntime/LocalProcess.cs Outdated
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
github-merge-queue Bot pushed a commit that referenced this pull request Mar 13, 2025
…10825)

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

In Processes, in Local Runtime, there is currently no equivalent of
`OnDeactivateAsync`(in dapr actors).
Adding hook up to have this functionality in Steps in LocalRuntime.

This hookup also allows properly supporting graceful uninitialization in
the new ProxyStep components to close properly connections/clean up
resources

Fixes #10282

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 13, 2025
@esttenorio esttenorio added this pull request to the merge queue Mar 13, 2025
Merged via the queue into microsoft:main with commit 8c6250f Mar 13, 2025
@esttenorio esttenorio deleted the estenori/processes/localRuntimeStepInit branch March 13, 2025 18:43
@github-project-automation github-project-automation Bot moved this from Backlog to Sprint: Done in Semantic Kernel Mar 13, 2025
@rogerbarreto
Copy link
Copy Markdown
Member

rogerbarreto commented Mar 15, 2025

@esttenorio @markwallace-microsoft
This changes created a very unstable UT results for Process. We need to revisit this change or disable to unblock the pipeline.

image

jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…icrosoft#10825)

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

In Processes, in Local Runtime, there is currently no equivalent of
`OnDeactivateAsync`(in dapr actors).
Adding hook up to have this functionality in Steps in LocalRuntime.

This hookup also allows properly supporting graceful uninitialization in
the new ProxyStep components to close properly connections/clean up
resources

Fixes microsoft#10282

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Issue or Pull requests regarding .NET code processes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Cloud Events Proxy properly hook up of Uninitialization

6 participants