Skip to content
GitHub

Self-hosting

Fleans runs from released container images. Pick the guide for where you run it:

Fleans publishes Fleans.ExternalTasks.Sdk to nuget.org on every tagged GitHub Release. It is the supported way to write a custom-task worker in .NET: a plain generic host that connects to the API over gRPC, with no Orleans dependency and no engine source dependency. It is not needed to run the engine itself.

PackageHolds
Fleans.ExternalTasks.SdkExternalTaskHandler, ExternalTaskFailedException, ExternalTaskParameterSchema, ExternalTaskVisibility, ExternalTaskVariables, AddFleansExternalTaskWorker, AddExternalTaskHandler<T>, and the protocol file under protos/.
Fleans.Plugins.RestCallerNot an engine package: released from fleans-plugins on the same version track. The <serviceTask type="rest-call"> handler.

Fleans.Worker, Fleans.Application.Abstractions and Fleans.Domain.Abstractions are no longer published.

The fleans-custom-worker-example GitHub template is the supported scaffolding. Click Use this template to start your own worker repo.

<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Fleans.ExternalTasks.Sdk" Version="0.15.0" />
<PackageReference Include="Fleans.Plugins.RestCaller" Version="0.15.0" />
</ItemGroup>
</Project>

Program.cs:

using Fleans.ExternalTasks.Sdk;
using Fleans.Plugins.RestCaller; // the rest-call handler (fleans-plugins)
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddFleansExternalTaskWorker();
builder.Services.AddRestCallerPlugin();
builder.Build().Run();

Run it with Fleans__ExternalTaskWorker__EngineUrl set to the API’s URL, and <bpmn:serviceTask type="rest-call"> activities reach it. See Custom Tasks for the handler authoring guide and Hosting workers for production.

The package is published by .github/workflows/nuget-publish.yml on release.published (plugin packages such as Fleans.Plugins.RestCaller are published from fleans-plugins), on the engine’s version track.

Every Fleans package you install from nuget.org carries nuget.org’s repository signature. nuget.org applies this signature server-side, when it accepts the upload — it is not produced by the Fleans build, and it is present on the package you restore, not on a locally-packed .nupkg. The repository signature chains to a root that .NET trusts by default, so you can verify any restored Fleans package:

Terminal window
# Resolve the package, then verify the signature on the restored .nupkg in your global packages cache.
dotnet add package Fleans.ExternalTasks.Sdk
dotnet nuget verify --all \
~/.nuget/packages/fleans.externaltasks.sdk/<version>/fleans.externaltasks.sdk.<version>.nupkg

verify --all exits 0 and reports a valid repository signature; it fails (NU3004) if the package is unsigned or has been tampered with after nuget.org signed it.

What this guarantees, and what it does not. The repository signature gives you integrity — the package is exactly what nuget.org accepted and has not been altered in transit or on the feed. It does not assert publisher identity: it proves nuget.org holds the package, not that the Fleans project specifically signed it. For a pre-1.0 project this is a deliberate trade-off — repository signing delivers the tamper-resistance most consumers need at zero setup, and publisher (author) signing is a planned follow-up (#728) for when publisher-authenticated signatures become worth the certificate onboarding. Until then, no project-managed signing certificate or per-consumer trust step is required.