Module Settings
Full Module Settings
configPath
The configPath is a dot-delimited path to your cbq Config Component. By convention, this should be placed in your application's config/
folder alongside other config files like ColdBox.cfc
and WireBox.cfc
.
registerWorkers
This flag is responsible for spinning up Worker Pools when the application starts. If a particular instance of your application should not work jobs as well as dispatch them, then this setting should be set to false
. To make this easy, you can set the CBQ_REGISTER_WORKERS
environment variable and it will be picked up. (If you override this setting in your own moduleSettings
it will still take precedence over the environment variable.)
scaleInterval
This feature is not implemented yet.
This is the interval in seconds that the scale job is ran in the background. The scale job enables you to scale Worker Pools up or down based on any other factors in your application.
Setting this value to 0
disables the job entirely.
defaultWorkerBackoff
This setting provides a default backoff value for a Worker Pool. This can still be overridden on a configured Worker Pool in your cbq config file or on an individual Job or dispatch
call.
defaultWorkerTimeout
This setting provides a default timeout value for a Worker Pool. This can still be overridden on a configured Worker Pool in your cbq config file or on an individual Job or dispatch
call.
defaultWorkerMaxAttempts
This setting provides a default max attempts value for a Worker Pool. This can still be overridden on a configured Worker Pool in your cbq config file or on an individual Job or dispatch
call.
batchRepositoryProperties
A struct of configuration properties for a Batch Repository. This is only needed if you dispatch any batches.
tableName
The name of the batch table. The default is cbq_batches
.
datasource
The datasource to use to interact with the batch table. If no datasource is provided, it uses the default application datasource. A struct
can also be provided if your CFML engine supports it.
queryOptions
A struct of query options to pass to the queryExecute
call when interacting with the batch table. If a datasource
is defined above, it will override any datasource
key inside the queryOptions
.
logFailedJobs
This flag will send failed jobs to a configured database table when true. In some systems, this is called a Dead Letter Queue or DLQ.
logFailedJobsProperties
tableName
The name of the failed jobs table. The default is cbq_failed_jobs
.
datasource
The datasource to use to interact with the failed jobs table. If no datasource is provided, it uses the default application datasource. A struct
can also be provided if your CFML engine supports it.
queryOptions
A struct of query options to pass to the queryExecute
call when interacting with the failed jobs table. If a datasource
is defined above, it will override any datasource
key inside the queryOptions
.
Last updated