Directories
¶
| Path | Synopsis |
|---|---|
|
Package completer batches job state updates and heartbeats.
|
Package completer batches job state updates and heartbeats. |
|
Package elector elects one leader per cluster with a lease row whose times come from the client clock.
|
Package elector elects one leader per cluster with a lease row whose times come from the client clock. |
|
Package executor runs one attempt of a job: it applies the job, kind or client timeout, recovers panics with their stack, consults the error handler, honours cancel requests, and maps the result to a completion.
|
Package executor runs one attempt of a job: it applies the job, kind or client timeout, recovers panics with their stack, consults the error handler, honours cancel requests, and maps the result to a completion. |
|
Package maintenance holds the leader-only services (scheduler, rescuer, cleaner, reindexer, periodic enqueuer, queue-depth sampler) and the PollOnly cancel poller.
|
Package maintenance holds the leader-only services (scheduler, rescuer, cleaner, reindexer, periodic enqueuer, queue-depth sampler) and the PollOnly cancel poller. |
|
Package notifier multiplexes a single Postgres LISTEN connection to the producers, the cancel handler and the elector, and reconnects with jittered backoff when the connection is lost.
|
Package notifier multiplexes a single Postgres LISTEN connection to the producers, the cancel handler and the elector, and reconnects with jittered backoff when the connection is lost. |
|
Package producer runs the fetch loop of one queue: it wakes on NOTIFY, on finished jobs and on a poll interval, fetches up to its free capacity (honouring pause, per-key limits and fairness) and runs each job on its own goroutine with a cancellable job context.
|
Package producer runs the fetch loop of one queue: it wakes on NOTIFY, on finished jobs and on a poll interval, fetches up to its free capacity (honouring pause, per-key limits and fairness) and runs each job on its own goroutine with a cancellable job context. |
Click to show internal directories.
Click to hide internal directories.