Skip to content

Add a worker

A new worker type gets an entry once its first version is on the feed.

[[worker]]
name = "BookImbalance"
description = "Order-book imbalance per pair, on every book update."
source_url = "https://git.haenerconsulting.com/api/packages/virtufin/nuget/package/Virtufin.Worker.BookImbalance/{version}/Virtufin.Worker.BookImbalance.{version}.nupkg"
mime_type = "application/x-dotnet-dll"
authentication = "virtufin"
versions = ["0.1.0"]
config_schema = '''
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {} }
'''
  1. Add the entry (fields in the reference). Use an absolute source_url and authentication = "virtufin" for the org feed.
  2. config_schema lists only keys the worker reads, never a platform setting (those go in settings).
  3. Bump versions.env and add a CHANGELOG.md entry in the same commit, as for a new version.