Merge pull request #8526 from appwrite/lohanidamodar-patch-4

Trigger functions event only if event is not paused
This commit is contained in:
Damodar Lohani 2024-08-15 10:42:27 +05:45 committed by GitHub
commit 899ffd4086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -556,10 +556,11 @@ App::shutdown()
/**
* Trigger functions.
*/
$queueForFunctions
->from($queueForEvents)
->trigger();
if (!$queueForEvents->isPaused()) {
$queueForFunctions
->from($queueForEvents)
->trigger();
}
/**
* Trigger webhooks.
*/