mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Split maintenance duties from notifier
This commit is contained in:
@@ -60,6 +60,20 @@ module.exports = {
|
||||
},
|
||||
time: true,
|
||||
},
|
||||
// Non-hot-path master duties: notifications, reporting, and cleanup.
|
||||
{
|
||||
...dockerLogConfig,
|
||||
name: 'maintenance',
|
||||
script: './dist/maintenance-main.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
env: {
|
||||
MASTER: 'true',
|
||||
API_ENABLED: 'false',
|
||||
NODE_CLUSTER_SCHED_POLICY: 'none',
|
||||
},
|
||||
time: true,
|
||||
},
|
||||
// Worker instances
|
||||
{
|
||||
...dockerLogConfig,
|
||||
|
||||
Reference in New Issue
Block a user