Table of Contents

Class WorkerTopicPlaceholders

Namespace
Virtufin.WorkManager.Configuration
Assembly
Virtufin.WorkManager.dll

Placeholders a CreateWorker topic may contain, expanded once when the worker is created and persisted expanded.

public static class WorkerTopicPlaceholders
Inheritance
WorkerTopicPlaceholders
Inherited Members

Remarks

{worker_id} lets a caller address commands to one worker instance by its identity (wrk.httpgetworker.command.{worker_id}, the naming library's core worker command topic) without knowing the id up front. WorkManager mints the id, so the caller can't name the topic before CreateWorker returns. A topic names what the data is, not who consumes it: commands to one instance are addressed by that instance, not by a notebook run id, and an orphaned trigger from a crashed run can only drive its own orphaned worker, never a later run's.

Fields

WorkerId

public static readonly string WorkerId

Field Value

string

Methods

Expand(IEnumerable<string>, Guid)

The topics with WorkerId replaced by workerId.

public static List<string> Expand(IEnumerable<string> topics, Guid workerId)

Parameters

topics IEnumerable<string>
workerId Guid

Returns

List<string>