CoreID/config/jobs.config.js

37 lines
1.0 KiB
JavaScript
Raw Permalink Normal View History

/*
* 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',
],
// Mapping of worker name => worker config
workers: {
// The name of the worker is "main"
main: {
// This worker will process these queues
2020-07-12 21:05:59 +00:00
queues: ['mailer', 'password_resets', 'notifications'],
},
// 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)
},
}
module.exports = exports = jobs_config