Skip to content

Commit 4f21152

Browse files
committed
try 15 times to start by default
1 parent 4abe84f commit 4f21152

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/Supervisor/GenerateSupervisorConfigCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
106106
command=$fullCommand
107107
process_name=$processName
108108
numprocs=$concurrency
109+
startretries=$program->startretries
109110
user=www-data
110111
autostart=true
111112
autorestart=true

src/Supervisor/SupervisorProgram.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ public static function single(string $name, string $command): self {
1010
name: $name,
1111
command: $command,
1212
concurrency: 1,
13+
startretries: 15,
1314
);
1415
}
1516

1617
/**
1718
* @param positive-int $concurrency
19+
* @param positive-int $startretries
1820
*/
1921
public function __construct(
2022
public string $name,
2123
public string $command,
2224
public int $concurrency,
25+
public int $startretries,
2326
) {
2427
}
2528
}

0 commit comments

Comments
 (0)