René's URL Explorer Experiment


Title: Graceful shutdowns for coder agents and shutdown scripts · Issue #6175 · coder/coder · GitHub

Open Graph Title: Graceful shutdowns for coder agents and shutdown scripts · Issue #6175 · coder/coder

X Title: Graceful shutdowns for coder agents and shutdown scripts · Issue #6175 · coder/coder

Description: In the ideal scenario where a workspace agent is connected to the coder server, we should initiate agent shutdown before we initiate Terraform provisioning to destroy/re-create the resource(s). Why? Providers behave differently, some may...

Open Graph Description: In the ideal scenario where a workspace agent is connected to the coder server, we should initiate agent shutdown before we initiate Terraform provisioning to destroy/re-create the resource(s). Why...

X Description: In the ideal scenario where a workspace agent is connected to the coder server, we should initiate agent shutdown before we initiate Terraform provisioning to destroy/re-create the resource(s). Why...

Opengraph URL: https://github.com/coder/coder/issues/6175

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Graceful shutdowns for coder agents and shutdown scripts","articleBody":"In the ideal scenario where a workspace agent is connected to the coder server, we should initiate agent shutdown _before_ we initiate Terraform provisioning to destroy/re-create the resource(s).\r\n\r\n**Why?**\r\n\r\n- Providers behave differently, some may not initiate graceful shutdowns and we might not be able to control timeouts for them\r\n- Template authors may use the agent `shutdown_script` to perform a critical task that must complete successfully (e.g. backing up filesystem)\r\n\t- The task/script may take a long time\r\n- We can leave the workspace running and allow debugging an agent that didn't successfully execute its `shutdown_script`\r\n\r\n**To consider:**\r\n\r\n- At the end we must not _exit_ the agent process\r\n\t- _Only applies when graceful shutdown is initiated by coder server!_\r\n\t- We should de-register signal handlers and wait \"indefinitely\"\r\n\t- Let the next signal terminate the process\r\n\t- Why? This prevents e.g. a systemd service from restarting the agent\r\n- Should behavior differ if a workspace is started/stopped?\r\n- What happens when an agent is disconnected and we can't tell it to shut down? -> Block or allow de-provision? Require the use of \"force\"?\r\n\r\nRelated: #4677, #5914, #6139","author":{"url":"https://github.com/mafredri","@type":"Person","name":"mafredri"},"datePublished":"2023-02-13T12:01:21Z","url":"https://github.com/coder/coder/issues/6175"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f19de135-fcb0-bf72-babc-0f0415828258
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD16C:1050BD:4CA9DF:65866A:6B019B85
html-safe-nonce4a5b8d8223a7c048cd3b50747f721ff6cbcdd7231220097728aae04cf65716d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTZDOjEwNTBCRDo0Q0E5REY6NjU4NjZBOjZCMDE5Qjg1IiwidmlzaXRvcl9pZCI6IjI3MzExODY3MTc2ODcxMjY5MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47e6c971e618c88b8cabd5234e3023883d33e7e98e92cc72aa5a114f063dd735
hovercard-subject-tagissue:1582219729
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/coder/coder/6175/issue_layout
twitter:imagehttps://opengraph.githubassets.com/821e0498f107a5feeed2edf21983a422cf5a02b2ad5361ddae035a02659fac49/coder/coder/issues/6175
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/821e0498f107a5feeed2edf21983a422cf5a02b2ad5361ddae035a02659fac49/coder/coder/issues/6175
og:image:altIn the ideal scenario where a workspace agent is connected to the coder server, we should initiate agent shutdown before we initiate Terraform provisioning to destroy/re-create the resource(s). Why...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemafredri
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/6175#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F6175
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%2Fcoder%2Fcoder%2Fissues%2F6175
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=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/6175
Reloadhttps://github.com/coder/coder/issues/6175
Reloadhttps://github.com/coder/coder/issues/6175
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/6175
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/6175
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
Graceful shutdowns for coder agents and shutdown scriptshttps://github.com/coder/coder/issues/6175#top
https://github.com/mafredri
https://github.com/mafredri
mafredrihttps://github.com/mafredri
on Feb 13, 2023https://github.com/coder/coder/issues/6175#issue-1582219729
#4677https://github.com/coder/coder/issues/4677
#5914https://github.com/coder/coder/pull/5914
#6139https://github.com/coder/coder/pull/6139
Nexthttps://github.com/coder/coder/issues/6175?timeline_page=1
mafredrihttps://github.com/mafredri
featurehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22feature%22
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
cliArea: CLIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22cli%22
on Feb 13, 2023https://github.com/coder/coder/issues/6175#event-8503639744
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on May 15, 2023https://github.com/coder/coder/issues/6175#issuecomment-1547039358
github-actionshttps://github.com/apps/github-actions
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on May 15, 2023https://github.com/coder/coder/issues/6175#event-9240987523
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on May 23, 2023https://github.com/coder/coder/issues/6175#event-9309010135
mafredrihttps://github.com/mafredri
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on May 23, 2023https://github.com/coder/coder/issues/6175#event-9313159418
mafredrihttps://github.com/mafredri
on Jul 3, 2023https://github.com/coder/coder/issues/6175#event-9706013027
github-actionshttps://github.com/apps/github-actions
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on Jan 1, 2024https://github.com/coder/coder/issues/6175#event-11364277136
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jan 9, 2024https://github.com/coder/coder/issues/6175#event-11423755851
https://github.com/mafredri
mafredrihttps://github.com/mafredri
on Jan 9, 2024https://github.com/coder/coder/issues/6175#issuecomment-1883075584
mafredrihttps://github.com/mafredri
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on Jan 9, 2024https://github.com/coder/coder/issues/6175#event-11430591324
github-actionshttps://github.com/apps/github-actions
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 8, 2024https://github.com/coder/coder/issues/6175#event-13415358836
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 16, 2024https://github.com/coder/coder/issues/6175#event-13512563799
mafredrihttps://github.com/mafredri
on Jul 16, 2024https://github.com/coder/coder/issues/6175#event-13517250835
mafredrihttps://github.com/mafredri
staleThis issue is like stale bread.https://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22stale%22
on Jul 16, 2024https://github.com/coder/coder/issues/6175#event-13517251524
bpmcthttps://github.com/bpmct
on Aug 30, 2024https://github.com/coder/coder/issues/6175#event-14082179599
bpmcthttps://github.com/bpmct
on Aug 30, 2024https://github.com/coder/coder/issues/6175#event-14082183356
https://github.com/kaypeter87
kaypeter87https://github.com/kaypeter87
on Sep 25, 2024https://github.com/coder/coder/issues/6175#issuecomment-2374901218
https://github.com/mafredri
mafredrihttps://github.com/mafredri
on Sep 26, 2024https://github.com/coder/coder/issues/6175#issuecomment-2377699204
@kaypeter87https://github.com/kaypeter87
#6174https://github.com/coder/coder/issues/6174
matifalihttps://github.com/matifali
featurehttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22feature%22
on Oct 14, 2024https://github.com/coder/coder/issues/6175#event-14643283255
https://github.com/mafredri
mafredrihttps://github.com/mafredri
on Jan 20, 2026https://github.com/coder/coder/issues/6175#issuecomment-3773403349
@spikecurtishttps://github.com/spikecurtis
#21538 (comment)https://github.com/coder/coder/pull/21538#issuecomment-3771328824
linearhttps://github.com/apps/linear
apiArea: HTTP APIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22api%22
cliArea: CLIhttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22cli%22
on Feb 13, 2026https://github.com/coder/coder/issues/6175#event-22775682649
linearhttps://github.com/apps/linear
mafredrihttps://github.com/mafredri
on Feb 18, 2026https://github.com/coder/coder/issues/6175#event-22880621924
linear-codehttps://github.com/apps/linear-code
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jul 23, 2026https://github.com/coder/coder/issues/6175#event-28382137640
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/6175
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/6175
mafredrihttps://github.com/mafredri
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
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.