TickerNet.Worker
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package TickerNet.Worker --version 1.0.0
NuGet\Install-Package TickerNet.Worker -Version 1.0.0
<PackageReference Include="TickerNet.Worker" Version="1.0.0" />
<PackageVersion Include="TickerNet.Worker" Version="1.0.0" />
<PackageReference Include="TickerNet.Worker" />
paket add TickerNet.Worker --version 1.0.0
#r "nuget: TickerNet.Worker, 1.0.0"
#:package TickerNet.Worker@1.0.0
#addin nuget:?package=TickerNet.Worker&version=1.0.0
#tool nuget:?package=TickerNet.Worker&version=1.0.0
TickerNet.Worker
Runs TickerNet jobs in a separate worker process. The worker connects to a
scheduler that uses TickerNet.Hub, declares its [TickerFunction]
functions, and runs them when the scheduler sends them. It needs only outbound access to the scheduler.
Setup
using TickerNet.DependencyInjection;
using TickerNet.Utilities.Base;
using TickerNet.Worker;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddTickerNet(options => options.AddTickerNetWorker(worker =>
{
worker.HubAddress = new Uri("https://scheduler.internal:5001");
// The scheduler's shared secret, from configuration or a secret store.
worker.SharedSecret = builder.Configuration["TickerNet:SharedSecret"]!;
// Every replica of this worker uses the same node name.
worker.NodeName = "reports";
}));
var host = builder.Build();
host.UseTickerNet();
await host.RunAsync();
public class ReportJobs
{
[TickerFunction("SendReport")]
public Task SendReport(TickerFunctionContext context, CancellationToken cancellationToken) => Task.CompletedTask;
}
The scheduler knows this function as SendReport@reports. Schedule it there, or from the worker with
ITimeTickerManager and the function's own name, SendReport: the worker saves the job on the scheduler.
Don't add a job store (EF Core, Redis or MongoDB) to a worker. Jobs, history and the dashboard live on the scheduler. A worker can only add, change or remove jobs for its own node, and changes from a worker apply only to a job's schedule (time or cron expression, request, retries, description).
When the app stops, the worker tells the scheduler, takes no new runs, and finishes the runs it has before it disconnects, so rolling deploys don't fail jobs.
Options
| Option | Default | Meaning |
|---|---|---|
HubAddress |
(required unless HubAddresses is set) |
The scheduler's address. |
HubAddresses |
empty | With several scheduler instances, each instance's address; the worker connects to all of them. |
SharedSecret |
(required) | The scheduler's shared secret. |
NodeName |
(required) | Groups interchangeable replicas. No @ or spaces. |
MaxConcurrency |
0 (no limit) | Most runs this worker executes at once. |
HeartbeatInterval |
15 s | How often the worker tells the scheduler it's alive. |
OperationTimeout |
30 s | How long to wait for the scheduler to save jobs added on the worker. |
MaxReconnectDelay |
30 s | Longest wait between reconnect attempts. |
ShutdownTimeout |
25 s | On shutdown, how long to wait for runs in progress to finish. |
AllowUnencryptedHttp |
false |
Allow a plain http hub address on another machine (trusted private networks only). |
MaxMessageSize |
16 MB | Largest message either side may send. |
ConfigureChannel |
none | Changes the gRPC channel, for example for client certificates or a proxy. |
Coming from TickerQ
TickerNet.Worker takes the place of TickerQ.SDK, without TickerQ Hub: it connects straight to your scheduler. Use
the node name your TickerQ SDK used, and jobs TickerQ stored for that node keep running.
Read the remote workers guide for the full picture.
| 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. |
-
net10.0
- Google.Protobuf (>= 3.31.1)
- Grpc.Net.Client (>= 2.76.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0 && < 11.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0 && < 11.0.0)
- TickerNet (>= 1.0.0)
- TickerNet.Utilities (>= 1.0.0)
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 |
|---|---|---|
| 1.1.0 | 0 | 11/24/2026 |
| 1.0.0 | 0 | 11/24/2026 |
| 1.0.0-preview.1 | 0 | 11/24/2026 |