Optionalactivities?: Record<string, Function>Connection configuration for the worker
Optionalguid?: stringProvide to set the engine name. This MUST be unique, so do not provide unless it is guaranteed to be a unique engine/worker guid when identifying the point of presence within the mesh.
Optionalnamespace?: stringNamespace used in the app configuration, denoted as appid in the YAML
Optionaloptions?: WorkerOptionsAdditional options for configuring the worker
Optionalsearch?: WorkflowSearchOptionsSearch options for workflow execution details
Task queue name, denoted as subscribes in the YAML (e.g., 'hello-world')
OptionalworkerScoped Postgres credentials for database-level worker isolation. When provided, the worker connects as a restricted Postgres role that can only dequeue/ack/respond on its allowed stream names via SECURITY DEFINER stored procedures.
Provision credentials via HotMesh.provisionWorkerRole() (or
the convenience alias Durable.provisionWorkerRole()).
Target function or a record type with a name (string) and reference function
Optional activity functions to register with this worker's task queue. When provided, these activities are registered and served on
{taskQueue}-activity. Workflows can then call them viaproxyActivities()without passing activities inline.Workflows can then call them via
proxyActivities()without passing activities inline.