TickerNet.Hub 1.1.0

Prefix Reserved
dotnet add package TickerNet.Hub --version 1.1.0
                    
NuGet\Install-Package TickerNet.Hub -Version 1.1.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.Hub" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TickerNet.Hub" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="TickerNet.Hub" />
                    
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.Hub --version 1.1.0
                    
#r "nuget: TickerNet.Hub, 1.1.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.Hub@1.1.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.Hub&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=TickerNet.Hub&version=1.1.0
                    
Install as a Cake Tool

TickerNet.Hub

Lets a TickerNet scheduler run jobs on separate worker processes. Workers use TickerNet.Worker and connect straight to the scheduler: the scheduler is the hub, and no hosted service is involved.

Setup

using TickerNet.DependencyInjection;
using TickerNet.Hub;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddTickerNet(options =>
{
    // Plus your job store, for example options.AddOperationalStore(...).
    options.AddTickerNetHub(hub =>
    {
        // At least 32 characters. Keep it in configuration or a secret store; workers use the same value.
        hub.SharedSecret = builder.Configuration["TickerNet:SharedSecret"]!;
    });
});

var app = builder.Build();
app.UseTickerNet();
app.MapTickerNetHub();
app.Run();

Workers connect with gRPC over HTTP/2. Use HTTPS. In a trusted private network without TLS, give workers a port of its own that speaks only HTTP/2.

How it works

  • Each worker declares the [TickerFunction] functions it can run. The scheduler registers them as function@node, for example SendReport@reports, so they appear in the dashboard and can be scheduled like local functions.
  • When a remote job is due, the scheduler sends one attempt to a connected worker of that node and records the result. Retries, cancelling, status, history and tracing stay on the scheduler, so a retry can go to another replica.
  • With no worker connected, a run waits WorkerWaitTimeout (30 seconds by default) and is then recorded as Skipped.
  • Cron expressions on worker functions become cron jobs on the scheduler, paused while no connected worker offers the function. The hub never deletes them; remove one from the dashboard when it's no longer needed.
  • Runs go only to workers that offer the function. A run that never reached a worker, for example because the worker was stopping, goes to another worker without using a retry.

Several scheduler instances

Run AddTickerNetHub on every instance (same store, same shared secret) and give each worker every instance's address in HubAddresses. Whichever instance picks up a due job sends it to a worker connected to it. Each address must reach one instance, not a load balancer in front of several.

Options

Option Default Meaning
SharedSecret (required) Secret workers prove they know, at least 32 characters.
WorkerWaitTimeout 30 s How long a due run waits for a worker of its node.
ExecutionTimeout none Longest a run may take on a worker.
WorkerTimeout 45 s A worker that sends nothing for this long is dropped.
SeedCronTickers true Create cron jobs for worker functions with a cron expression.
PauseCronTickersWhileOffline true Pause those cron jobs while their node is offline.
MaxMessageSize 16 MB Largest message either side may send.

MapTickerNetHub() returns an endpoint convention builder, so you can add rules such as .RequireHost("workers.example.internal").

Security

  • Workers sign their call headers with the shared secret, and the hub checks them before it reads anything else, with a 5-minute clock window and a check against replayed calls. The hub signs its reply, so workers know they reached a real hub.
  • A worker can only add, change or remove jobs for its own node, can change only a job's schedule fields, and can read the stored request only of a run it is executing.
  • Use HTTPS. Workers refuse a plain http hub on another machine unless they set AllowUnencryptedHttp.

Coming from TickerQ

TickerNet.Hub takes the place of TickerQ.RemoteExecutor, without TickerQ Hub. Jobs stored as function@node run on a TickerNet worker that uses the same node name. SdkOfflineSkipException still works but is obsolete; use WorkerOfflineException.

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.  net11.0 is compatible. 
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