We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9878719 commit 3669e8eCopy full SHA for 3669e8e
src/bref/src/ConsoleApplicationRunner.php
@@ -25,7 +25,14 @@ public function run(): int
25
$lambda = LambdaClient::fromEnvironmentVariable('symfony-runtime-console');
26
27
while (true) {
28
- $lambda->processNextEvent($this->handler);
+ /*
29
+ * In case the execution failed, we force starting a new process. This
30
+ * is because an uncaught exception could have left the application
31
+ * in a non-clean state.
32
+ */
33
+ if (!$lambda->processNextEvent($this->handler)) {
34
+ return 0;
35
+ }
36
}
37
38
0 commit comments