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(watch): stopping persistent tasks #9330

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

NicholasLYang
Copy link
Contributor

Description

We were accidentally stopping persistent tasks when we shouldn't have because we were reusing the same stopper.

Testing Instructions

We need a way to test persistent stuff and also run construction stuff.

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 3:10pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-tailwind-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm
examples-vite-web ⬜️ Ignored (Inspect) Visit Preview Oct 24, 2024 3:10pm

@@ -137,7 +137,12 @@ impl Run {
}

pub fn create_run_for_non_interruptible_tasks(&self) -> Self {
let mut new_run = self.clone();
let mut new_run = Self {
// ProcessManager is a singleton, so we want to explicitly recreate it
Copy link
Member

Choose a reason for hiding this comment

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

Non blocking, but I think singleton is the wrong term as that means that only one of these should be created per thread. I think just saying the cloning a ProcessManager shares state is clear enough.

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.

2 participants