diff --git a/backend/pricing-engine/ecosystem.config.js b/backend/pricing-engine/ecosystem.config.js new file mode 100644 index 00000000..27e448fd --- /dev/null +++ b/backend/pricing-engine/ecosystem.config.js @@ -0,0 +1,34 @@ +module.exports = { + apps: [ + { + name: "siro-pricing-surge", + script: "dist/index.js", + args: "--mode=surge --hours=3", + instances: 1, + exec_mode: "fork", + cron_restart: "0 * * * *", // كل ساعة على رأس الساعة + autorestart: false, + watch: false + }, + { + name: "siro-pricing-full", + script: "dist/index.js", + args: "--mode=full --hours=72", + instances: 1, + exec_mode: "fork", + cron_restart: "0 6 * * *", // كل يوم الساعة 6 صباحاً + autorestart: false, + watch: false + }, + { + name: "siro-pricing-report", + script: "dist/index.js", + args: "--mode=report", + instances: 1, + exec_mode: "fork", + cron_restart: "0 8 * * 0", // كل يوم أحد الساعة 8 صباحاً + autorestart: false, + watch: false + } + ] +};