1
0
Fork 0
mirror of synced 2024-10-05 12:43:13 +13:00

Merge pull request #3696 from appwrite/fix-event-multi-execution

Fix: event multi-execution
This commit is contained in:
Christy Jacob 2023-04-25 17:31:45 +04:00 committed by GitHub
commit 1c4dc6a424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,7 @@ class FunctionsV1 extends Worker
Console::success('Iterating function: ' . $function->getAttribute('name')); Console::success('Iterating function: ' . $function->getAttribute('name'));
try {
$this->execute( $this->execute(
project: $project, project: $project,
function: $function, function: $function,
@ -94,6 +95,9 @@ class FunctionsV1 extends Worker
); );
Console::success('Triggered function: ' . $events[0]); Console::success('Triggered function: ' . $events[0]);
} catch (\Throwable $th) {
Console::error("Failed to execute " . $function->getId() . " with error: " . $th->getMessage());
}
} }
} }