LevelUp.Bifrost.Scheduling.Testing 0.7.3

dotnet add package LevelUp.Bifrost.Scheduling.Testing --version 0.7.3
                    
NuGet\Install-Package LevelUp.Bifrost.Scheduling.Testing -Version 0.7.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LevelUp.Bifrost.Scheduling.Testing" Version="0.7.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LevelUp.Bifrost.Scheduling.Testing" Version="0.7.3" />
                    
Directory.Packages.props
<PackageReference Include="LevelUp.Bifrost.Scheduling.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LevelUp.Bifrost.Scheduling.Testing --version 0.7.3
                    
#r "nuget: LevelUp.Bifrost.Scheduling.Testing, 0.7.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LevelUp.Bifrost.Scheduling.Testing@0.7.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LevelUp.Bifrost.Scheduling.Testing&version=0.7.3
                    
Install as a Cake Addin
#tool nuget:?package=LevelUp.Bifrost.Scheduling.Testing&version=0.7.3
                    
Install as a Cake Tool

<h1> <picture> <source media="(prefers-color-scheme: dark)" srcset="docs/brand/bifrost-lockup-dark.svg"> <img src="docs/brand/bifrost-lockup-light.svg" alt="Bifrost" width="300"> </picture> </h1>

NuGet Publish NuGet License

Bifrost is a .NET library for running background jobs at a pace your app and its dependencies can handle.

Say 100 users request a PDF at once, and your renderer can handle 10 jobs at a time. If every request calls await RenderAsync(), all 100 can reach the renderer. With Bifrost, we can easily setup the following capabilities:

  • Run up to 10 jobs at a time.
  • Queue up to 50 more.
  • Ask later callers to try again when the queue is full.

Register a typed handler and set your limits. Bifrost runs the jobs and lets you choose how to share worker capacity. You can give interactive jobs priority over batch work or keep one busy tenant from taking all the worker slots.

The default queue runs in your app’s memory. If accepted jobs need to survive a restart, use the optional PostgreSQL-backed service. Your app can confirm that a job is queued and let callers check its status later. On-demand and scheduled jobs can share the same worker pool.

Design

With a .NET channel and BackgroundService, your app implements worker coordination and dispatch rules. With Bifrost, your app chooses a policy and supplies the typed handler. Bifrost manages the pool.

<a name="core-concepts"></a> <a name="priority-dispatch"></a>

Choose a dispatch policy

Each in-memory or PostgreSQL pool uses one policy. Delayed or blocked jobs wait. Cancelled jobs are skipped. Full queues reject immediate submissions unless you configure a cancellable wait.

Dispatch How it chooses the next job
FIFO Start the oldest eligible job in the pool.
Keyed Rotate among ready keys. Within the selected key, start the oldest eligible job. Set per-key concurrency limits.
Exact Priority Rank across the pool by acceptance time adjusted for work class. Break ties by admission order.
Relaxed Priority Approximate class priority by sampling queue heads. Use automatic stripe sizing or set the count explicitly.
Keyed Priority Rotate among ready keys, then apply exact priority within the selected key. Interactive work can jump ahead within its key while other keys still get a turn.

<a name="scheduling"></a>

From schedule to outcome

Both modes share one scheduling API. Quartz wakes the scheduler, and Bifrost admits scheduled work to the same pools as on-demand jobs. Apps without schedules can skip Quartz.

  • Cadence. Five-field cron with UTC by default, intervals, or one-shots.
  • Missed fires. After missing 09:01–09:03, skip all three, coalesce to 09:03, or replay each in order, up to 100.
  • Full queues. Delivery retries until its admission deadline by default. You can configure immediate rejection.
  • Tracking. A manual trigger returns an occurrence ID. After admission, the work ID tracks execution.

PostgreSQL recovers committed schedules and pending deliveries. Retrying an already admitted occurrence returns its original work ID. In-memory state ends on restart. Start durable deployments in a fresh namespace or empty store.

For the release candidate, see the dispatch and scheduling guide and its shared memory and PostgreSQL sample.

Packages

Bifrost targets .NET 10. Start with LevelUp.Bifrost and add the integrations you need.

Package Purpose
LevelUp.Bifrost In-process queues, worker pools, dispatch, and typed handlers
LevelUp.Bifrost.Core Orchestrator abstractions and options
LevelUp.Bifrost.Concurrency Standalone concurrent priority queues
LevelUp.Bifrost.Resilience Polly policies for submission and handler execution
LevelUp.Bifrost.HealthChecks .NET health check integration
LevelUp.Bifrost.OpenTelemetry Queue, worker, and handler metrics
LevelUp.Bifrost.Scheduling Shared scheduling API and Quartz integration for in-memory and durable pools
LevelUp.Bifrost.Scheduling.Core Shared schedule, cadence, and occurrence contracts
LevelUp.Bifrost.Scheduling.Testing Fake-clock tools for testing schedule and delivery behavior
LevelUp.Bifrost.Durable Durable work admission, execution contracts, and worker dispatch
LevelUp.Bifrost.Durable.PostgreSql PostgreSQL storage for accepted work, execution attempts, and result references
LevelUp.Bifrost.Durable.Quartz Clustered Quartz wakeups and durable occurrence delivery
LevelUp.Bifrost.Durable.Http ASP.NET Core endpoints and hosting for durable execution
LevelUp.Bifrost.Durable.Client Typed HTTP client for submitting work, checking status, and managing schedules

Example

The Agent Framework sample runs one turn per chat session at a time while other sessions keep moving. It runs offline from a source checkout.

dotnet run -c Release --project samples/Bifrost.AgentFramework.Sample

The sample uses Keyed dispatch with one running turn per session. To give interactive turns priority over batch work within each session, select Keyed Priority for the pool and classify the turns by work class.

Build and contribute

Install the .NET 10 SDK specified in global.json. From a source checkout, build and run the tests.

dotnet build src/Bifrost.sln -c Release
dotnet test --solution src/Bifrost.sln -c Release

See the documentation index, releases, and Apache 2.0 license.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.3 51 12/3/2026
0.7.2 50 12/2/2026
0.7.1 97 11/30/2026
0.7.0 99 11/30/2026
0.7.0-rc.1 70 11/26/2026
0.6.3-rc.1 65 11/25/2026
0.6.2 104 11/13/2026
0.6.0 134 10/29/2026
0.5.2 185 7/7/2026
0.5.1 159 6/22/2026
0.5.0 148 6/16/2026