diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 2b0013db29..099e4b4c2a 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -556,10 +556,11 @@ App::shutdown() /** * Trigger functions. */ - $queueForFunctions - ->from($queueForEvents) - ->trigger(); - + if (!$queueForEvents->isPaused()) { + $queueForFunctions + ->from($queueForEvents) + ->trigger(); + } /** * Trigger webhooks. */