TickerNet.Worker 1.0.0

Prefix Reserved
There is a newer version of this package available.
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
                    
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="TickerNet.Worker" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TickerNet.Worker" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="TickerNet.Worker" />
                    
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 TickerNet.Worker --version 1.0.0
                    
#r "nuget: TickerNet.Worker, 1.0.0"
                    
#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 TickerNet.Worker@1.0.0
                    
#: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=TickerNet.Worker&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=TickerNet.Worker&version=1.0.0
                    
Install as a Cake Tool

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 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
1.1.0 0 11/24/2026
1.0.0 0 11/24/2026
1.0.0-preview.1 0 11/24/2026