migrating-inprocess-background-jobs
Ports background jobs from ASP.NET Framework to ASP.NET Core and the .NET Generic Host, and stops a job running twice while the legacy and new hosts are both live. Use when an app uses WebBackgrounder (JobManager, IJob, IJobCoordinator, WebFarmJobCoordinator), HostingEnvironment.QueueBackgroundWorkItem, IRegisteredObject or…
Full publisher description
Ports background jobs from ASP.NET Framework to ASP.NET Core and the .NET Generic Host, and stops a job running twice while the legacy and new hosts are both live. Use when an app uses WebBackgrounder (JobManager, IJob, IJobCoordinator, WebFarmJobCoordinator), HostingEnvironment.QueueBackgroundWorkItem, IRegisteredObject or HostingEnvironment.RegisterObject, timers or Task.Run loops started from Application_Start, WebActivatorEx or OWIN Startup, or console job runners whose Main loops and sleeps or runs once per external trigger. Covers BackgroundService, IHostedService, Channel<T> work queues, Generic Host and Worker Service console jobs, shutdown and failure behaviour, and a duplicate-execution guard for side-by-side migration: a shared SQL schedule row or an Azure blob lease that both hosts take, fencing tokens, and handover. Triggers for "background job", "scheduled job", "hosted service", "job runs twice", "double fire", "leader election", "distributed lock", or "singleton job".
Source details
Read SKILL.md ↗ · Browse skill folder ↗
microsoft/upgrade-agent-plugins
plugins/upgrade-agent/upgrade/dotnet/skills/lazy/common/migrating-inprocess-background-jobs/SKILL.mdPinned revision cede9dcfbc09a06f0e63652e64fc7545ce5fe1df
Source checked
Reviewed licence: LicenseRef-Microsoft-Copilot-Modernization-Preview
Repository default at the reviewed revision: Visual Studio development/testing only; preview expiry, confidentiality and no-sharing/distribution restrictions apply. Copilot access has separate terms.
Reviewed publisher revision ↗ · 2026-11-22
This indexed source has a different revision. Verify its applicable terms before use.
This skill page is available in English. Publisher instructions stay in their original language.