Supervisor for one Temporalex worker instance.
A worker is a poller + executor bound to one task queue — the deployment topology written down: this node serves these workflows. The minimal spec is just that statement:
{Temporalex.Worker, workflows: [Booking, Waitlist], activities: [Bookings.Activities]}Everything else is derived:
- the task queue has exactly one source: derived from the workflow
modules'
use ..., queue:declarations (boot error if they disagree). Passingtask_queue:alongside declaring modules is a boot error — redundant or contradictory, either way the modules own it. Only a worker whose modules declare nothing (activity-only workers, or workflow modules withoutqueue:) takes — and then requires — an explicittask_queue:. client:— defaults to the app's default client.name:— derived from the queue, overridable.
Summary
Functions
Returns a specification to start this module under a supervisor.