36 lines
987 B
JavaScript
36 lines
987 B
JavaScript
|
/*
|
||
|
* 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',
|
||
|
],
|
||
|
|
||
|
// Mapping of worker name => worker config
|
||
|
workers: {
|
||
|
|
||
|
// The name of the worker is "main"
|
||
|
main: {
|
||
|
// This worker will process these queues
|
||
|
queues: ['mailer', 'password_resets'],
|
||
|
},
|
||
|
|
||
|
// 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
|