WJb 1.0.0-beta2
This is a prerelease version of WJb.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package WJb --version 1.0.0-beta2
NuGet\Install-Package WJb -Version 1.0.0-beta2
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="WJb" Version="1.0.0-beta2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WJb" Version="1.0.0-beta2" />
<PackageReference Include="WJb" />
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 WJb --version 1.0.0-beta2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WJb, 1.0.0-beta2"
#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 WJb@1.0.0-beta2
#: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=WJb&version=1.0.0-beta2&prerelease
#tool nuget:?package=WJb&version=1.0.0-beta2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
📘 WJb — Lightweight Priority Job Runner for .NET
🚀 What is WJb?
WJb is a lightweight, priority‑aware, workflow‑capable background job runner for .NET. It focuses on simplicity, predictability, testability, and full control — without forcing external packages.
⭐ Features
- ✔ In‑memory priority queue (ASAP / High / Normal / Low) with backpressure, fairness & in‑flight limits
- ✔ Parallel job processing (
MaxParallelJobs) - ✔ DI-friendly Actions (
IAction/IActionFactory) - ✔ Workflow chaining (success → next, failure → fail)
- ✔ Cron‑based scheduling (
JobScheduler) - ✔ JSON-based job payloads
- ✔ Built‑in Telemetry — Metrics + Activity tracing
🛠️ Register in Program.cs
services.AddWJb(
configureActions: map =>
{
map["MyAction"] = new ActionItem(
type: typeof(MyAction).AssemblyQualifiedName!,
more: new { name = "Oleksandr" }
);
}, addScheduler: true);
📨 Enqueue a Job
await processor.EnqueueJobAsync(
await processor.CompactAsync("Email", new { to = "user@example.com" }),
Priority.High);
🔁 Workflow Chaining
WJb supports deterministic branching using next_* and fail_* keys.
{
"Start": {
"type": "WorkflowAction",
"more": {
"next": "SendEmail",
"next_to": "user@example.com",
"fail": "LogError",
"fail_message": "Startup failed"
}
},
"SendEmail": {
"type": "EmailAction",
"more": {
"from": "noreply@example.com",
"subject": "Welcome!"
}
},
"LogError": {
"type": "LogAction",
"more": { "level": "Error" }
}
}
Rules
- Only
next_*/fail_*keys are forwarded - Prefix removed → merged into next action
- Child‑wins merge (job overrides action defaults)
- Priority may be overridden using:
next_priorityfail_priority
🏷 License
MIT License (see LICENSE file)
🙌 Support
If WJb helps you — ⭐ the repo or support via PayPal.
| Product | Versions 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.
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.2)
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 |
|---|
Loading failed