Interface: PGBossAdapterConfiguration
Configuration for the PGBoss adapter.
See
PGBoss constructor documentation
Properties
Property | Type | Description |
---|---|---|
applicationName? | string | The name of the application using PGBoss. Defaults to 'pg-boss' . |
connection | | `postgres://${string}` | PostgreSQLConnectionObject | The connection to the PostgreSQL database. It can be either a connection string or an object with connection options. |
enforceEnqueueSequence? | boolean | Whether to enforce the sequence of job enqueueing. If set to true , jobs will be enqueued in the order they are provided. Defaults to false . |
expirationOptions? | PostgreSQLExpirationOptions | Expiration options for active jobs in PGBoss. |
jobPollingOptions? | PostgreSQLJobPollingOptions | Job polling options for the PGBoss instance. |
maintenanceOptions? | PostgreSQLMaintenanceOptions | Maintenance options for the PGBoss instance. |
maxConnections? | number | Maximum number of connections that will be shared by all operations in this instance. If not specified, it defaults to 10. |
queueOptions? | PostgreSQLQueueOptions | Connection-level options for queues |
retentionOptions? | PostgreSQLRetentionOptions | Retention options for PGBoss jobs. |
retryOptions? | PostgreSQLRetryOptions | Retry options for PGBoss jobs. |
schedulingOptions? | PostgreSQLSchedulingOptions | Scheduling options for the PGBoss instance. |
schema? | string | The schema to use for the PGBoss tables. If not specified, it defaults to 'pgboss' . |