Merge pull request #3696 from appwrite/fix-event-multi-execution
Fix: event multi-execution
This commit is contained in:
commit
1c4dc6a424
1 changed files with 15 additions and 11 deletions
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue