René's URL Explorer Experiment


Title: Dev command processes sometimes aren't properly terminated · Issue #2909 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: Dev command processes sometimes aren't properly terminated · Issue #2909 · triggerdotdev/trigger.dev

X Title: Dev command processes sometimes aren't properly terminated · Issue #2909 · triggerdotdev/trigger.dev

Description: Provide environment information System: OS: macOS 15.6 CPU: (16) arm64 Apple M4 Max Memory: 57.43 GB / 128.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.7.0 - /opt/homebrew/bin/node npm: 11.5.1 - /opt/homebrew/bin/npm pnpm: 10.27.0 - /U...

Open Graph Description: Provide environment information System: OS: macOS 15.6 CPU: (16) arm64 Apple M4 Max Memory: 57.43 GB / 128.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.7.0 - /opt/homebrew/bin/node npm: 11.5.1 - ...

X Description: Provide environment information System: OS: macOS 15.6 CPU: (16) arm64 Apple M4 Max Memory: 57.43 GB / 128.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.7.0 - /opt/homebrew/bin/node npm: 11.5.1 - ...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/2909

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dev command processes sometimes aren't properly terminated","articleBody":"### Provide environment information\n\n```\nSystem:\n    OS: macOS 15.6\n    CPU: (16) arm64 Apple M4 Max\n    Memory: 57.43 GB / 128.00 GB\n    Shell: 5.9 - /bin/zsh\nBinaries:\n    Node: 24.7.0 - /opt/homebrew/bin/node\n    npm: 11.5.1 - /opt/homebrew/bin/npm\n    pnpm: 10.27.0 - /Users/antonioamaralegydiomartins/Developer/repos/terac/platform/node_modules/.bin/pnpm\n    bun: 1.3.3 - /Users/antonioamaralegydiomartins/.bun/bin/bun\n```\n\n\n### Describe the bug\n\n\nWhen running `trigger.dev dev` and you need to restart the dev server (Ctrl+C or opening a new terminal), the `trigger-dev-run-worker` child processes from the previous session are not properly terminated. These workers become orphaned zombie processes that continue consuming significant CPU resources (10-25% each), even though they're no longer connected to any active dev session.\n\n**What I expected:** When the parent `trigger.dev dev` process is terminated, all child worker processes should be killed. Starting a new dev session should not leave orphaned workers from previous sessions.\n\n**What actually happens:** Worker processes from old sessions persist indefinitely, accumulating with each restart. After several restarts, I had 34 zombie workers consuming 450%+ combined CPU.\n\n\n### Reproduction repo\n\nNot applicable - this can be reproduced in any project using `trigger.dev dev`. The issue is in the CLI's process cleanup, not project-specific code.\n\n### To reproduce\n\n\n1. Start trigger.dev dev server:\n   ```bash\n   pnpm dlx trigger.dev@4.3.2 dev\n   ```\n\n2. Trigger some tasks (they can be running or completed)\n\n3. Stop the dev server (Ctrl+C) or the terminal becomes unresponsive\n\n4. Open a new terminal and start the dev server again:\n   ```bash\n   pnpm dlx trigger.dev@4.3.2 dev\n   ```\n\n5. Check running processes:\n   ```bash\n   ps aux | grep trigger-dev-run-worker\n   ```\n\n6. **Observe:** Worker processes from the PREVIOUS session are still running as zombies, alongside any new workers from the current session\n\n7. Repeat steps 3-6 multiple times and watch zombie workers accumulate\n\n\n### Additional information\n\n\n### Evidence - Process List (orphaned workers from previous sessions)\n\n```\nPID: 69294 | CPU: 22.8% | MEM: 0.3% | TIME: 3:11.26 | STARTED: 4:54PM\nPID: 70058 | CPU: 20.1% | MEM: 0.3% | TIME: 3:17.06 | STARTED: 4:54PM\nPID: 69698 | CPU: 19.1% | MEM: 0.3% | TIME: 3:04.85 | STARTED: 4:54PM\nPID: 69250 | CPU: 19.0% | MEM: 0.3% | TIME: 3:11.41 | STARTED: 4:54PM\nPID: 76510 | CPU: 18.4% | MEM: 0.3% | TIME: 1:49.24 | STARTED: 4:58PM\nPID: 70131 | CPU: 17.6% | MEM: 0.2% | TIME: 1:27.72 | STARTED: 4:54PM\nPID: 76039 | CPU: 16.6% | MEM: 0.3% | TIME: 1:46.70 | STARTED: 4:58PM\nPID: 68077 | CPU: 15.6% | MEM: 0.3% | TIME: 3:02.45 | STARTED: 4:53PM\nPID: 68205 | CPU: 15.4% | MEM: 0.3% | TIME: 3:18.22 | STARTED: 4:53PM\nPID: 69976 | CPU: 14.0% | MEM: 0.3% | TIME: 3:01.42 | STARTED: 4:54PM\n... (24 more orphaned workers with similar CPU usage)\n```\n\nNote: Workers were started at different times (4:53PM, 4:54PM, 4:58PM) corresponding to different dev server sessions - they accumulated across multiple restarts.\n\n### Workaround\n\n```bash\npkill -f \"trigger-dev-run-worker\"\n```\n\n### Related Issues\n\n- #1609 - Discusses multiple dev instances causing issues (related but different - that's about concurrent sessions, this is about orphaned workers after restart)\n\n### Trigger.dev Version\n\n- CLI: 4.3.2\n- Worker: 20260117.34","author":{"url":"https://github.com/AntonioAEMartins","@type":"Person","name":"AntonioAEMartins"},"datePublished":"2026-01-19T14:25:20Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2909"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3db005d0-e3c6-2f04-2f2c-de3c219d9835
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9640:180019:2A760D:3EAF03:6AFADE43
html-safe-nonceb3124e962e367d7a514b5c597ef61acd9307058c50f97511a8c2648df7b3556a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjQwOjE4MDAxOToyQTc2MEQ6M0VBRjAzOjZBRkFERTQzIiwidmlzaXRvcl9pZCI6IjgwOTQxMzE4Nzk5MDYzMDM1NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac29ab6fe508a6ac9c0df8d47fc1900056bf2bc525186dec3e485d4e9376bdbf8b
hovercard-subject-tagissue:3829966346
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/2909/issue_layout
twitter:imagehttps://opengraph.githubassets.com/55944b93fa135ebbcb89e43ee79bb6f9f58edced2c112cdac515b3a4e5f58033/triggerdotdev/trigger.dev/issues/2909
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/55944b93fa135ebbcb89e43ee79bb6f9f58edced2c112cdac515b3a4e5f58033/triggerdotdev/trigger.dev/issues/2909
og:image:altProvide environment information System: OS: macOS 15.6 CPU: (16) arm64 Apple M4 Max Memory: 57.43 GB / 128.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.7.0 - /opt/homebrew/bin/node npm: 11.5.1 - ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAntonioAEMartins
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/2909#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2909
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2909
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2909
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2909
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2909
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2909
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2909
Dev command processes sometimes aren't properly terminatedhttps://github.com/triggerdotdev/trigger.dev/issues/2909#top
https://github.com/AntonioAEMartins
AntonioAEMartinshttps://github.com/AntonioAEMartins
on Jan 19, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#issue-3829966346
Prevent multiple instance of the dev command running at the same time with a File lock #1609https://github.com/triggerdotdev/trigger.dev/issues/1609
deepshekhardashttps://github.com/deepshekhardas
on Feb 2, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#event-22470396721
fix(cli-v3): ensure worker cleanup on SIGINT/SIGTERM (triggerdotdev#2909https://github.com/deepshekhardas/trigger.dev/commit/737ad5640fac22ca4a5c77662220de8d4ca80dcb
triggerdotdev#2909https://github.com/triggerdotdev/trigger.dev/issues/2909
737ad56https://github.com/deepshekhardas/trigger.dev/commit/737ad5640fac22ca4a5c77662220de8d4ca80dcb
matt-aitkenhttps://github.com/matt-aitken
on May 5, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#event-25188500858
matt-aitkenhttps://github.com/matt-aitken
on May 5, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#event-25188510694
https://github.com/matt-aitken
matt-aitkenhttps://github.com/matt-aitken
on Aug 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#issuecomment-5463735879
#3191https://github.com/triggerdotdev/trigger.dev/pull/3191
matt-aitkenhttps://github.com/matt-aitken
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/2909#event-30215867540
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2909
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2909
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.