Skip to content

Conversation

@MikeAlhayek
Copy link
Member

No description provided.

@gvkries
Copy link
Member

gvkries commented Sep 25, 2025

I'm not sure this is the right approach. It adds even more load to the ShellScope without changing how the jobs are actually executed. More importantly, it introduces a dependency on HTTP within ShellScope, which feels conceptually wrong.

We should probably avoid adding more responsibilities to ShellScope, especially since it's already a performance-critical component and currently burdened with too many fields.

{
// Decrement the active jobs count when the job is disposed.
Interlocked.Decrement(ref _activeJobsCount);
}, true);
Copy link
Member

Choose a reason for hiding this comment

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

Moving this to individual calls at each return point isn't necessary. Keep in mind that this operates within a separate scope, which gets disposed after the inner scope that performs the actual work. It's safe to decrement the count during the disposal of the outer scope.

@MikeAlhayek
Copy link
Member Author

I'm not sure this is the right approach. It adds even more load to the ShellScope without changing how the jobs are actually executed. More importantly, it introduces a dependency on HTTP within ShellScope, which feels conceptually wrong.

We'll discuss during triage. If we elect to not proceed with adding the background into the ShellScope, we should at least take the renaming of the background job method name.

@github-actions
Copy link
Contributor

This pull request has merge conflicts. Please resolve those before requesting a review.

@github-actions
Copy link
Contributor

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up.

@github-actions github-actions bot added the stale label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants