35 lines
880 B
JavaScript
35 lines
880 B
JavaScript
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
|
|
}
|
|
]
|
|
};
|