Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ecosystem.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,20 @@ module.exports = {
COMPUTE_MODE: 'local',
ALWAYS_ON: 'true'
}
},
// === PROJECT GENIE ===
{
name: 'project-genie',
script: './scripts/genesis.cjs',
autorestart: true,
watch: false,
max_memory_restart: '300M',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The memory limit of 300MB (300M) is quite low for a Node.js process performing 'evolution building' tasks. Build tools, AST transformers, and code generators often require significant heap space. If the process exceeds this limit, PM2 will restart it, which could interrupt a mutation operation mid-way and potentially lead to file corruption or an inconsistent project state. Consider increasing this limit to at least 512M or 1G to provide more headroom for these intensive operations.

      max_memory_restart: '1G',

restart_delay: 5000,
env: {
GENESIS_LOOP: 'true',
FORCE_MUTATION: 'true',
ALWAYS_ON: 'true'
}
}
]
};