2020-05-25 20:45:26 +00:00
|
|
|
/*
|
|
|
|
* Job Queue Configuration
|
|
|
|
* -------------------------------------------------
|
|
|
|
* This file is provided by flitter-jobs and defines the job
|
|
|
|
* queues available to the application. It also specifies the
|
|
|
|
* workers and which queues they process.
|
|
|
|
*
|
|
|
|
* You can start a worker process by running the command:
|
|
|
|
* ./flitter worker <worker name>
|
|
|
|
*/
|
|
|
|
const jobs_config = {
|
|
|
|
|
|
|
|
// Array of queues by name
|
|
|
|
queues: [
|
|
|
|
'mailer',
|
|
|
|
'password_resets',
|
2020-07-12 21:05:59 +00:00
|
|
|
'notifications',
|
2021-05-04 16:28:55 +00:00
|
|
|
'verifications',
|
2020-05-25 20:45:26 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
// Mapping of worker name => worker config
|
|
|
|
workers: {
|
|
|
|
|
|
|
|
// The name of the worker is "main"
|
|
|
|
main: {
|
|
|
|
// This worker will process these queues
|
2021-05-04 16:28:55 +00:00
|
|
|
queues: ['mailer', 'password_resets', 'notifications', 'verifications'],
|
2020-05-25 20:45:26 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// You can have many workers, and multiple workers can
|
|
|
|
// process the same queue. Likewise, you can have multiple
|
|
|
|
// worker processes of the same type.
|
|
|
|
// (e.g. you can have two "main" workers)
|
|
|
|
},
|
2020-12-04 02:00:40 +00:00
|
|
|
|
|
|
|
connector: {
|
|
|
|
enabled: env('JOB_QUEUE_CONNECTOR', false),
|
|
|
|
mount: env('JOB_QUEUE_CONNECTOR_MOUNT', '/job_queue_api'),
|
|
|
|
secret: env('JOB_QUEUE_CONNECTOR_SECRET'),
|
|
|
|
},
|
|
|
|
|
2020-05-25 20:45:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = jobs_config
|