Options
Options are passed when the quillmark client is created. Every option is optional; the defaults suit most applications.
Options
| Option | Type | Default | Description |
|---|---|---|---|
DatabaseURL | string | "postgres://localhost/app" | Connection string of the database that stores jobs. |
Concurrency | int | 10 | Number of jobs processed at the same time by this worker. |
MaxAttempts | int | 25 | Attempts before a job is moved to the dead state. |
PollInterval | time.Duration | 1s | How often idle workers look for new jobs. |
ShutdownTimeout | time.Duration | 30s | How long to wait for running jobs on shutdown. |
QueueName | string | "default" | Queue this worker consumes. |
Durations are given in time.Duration.