diff --git a/app/workers/functions.php b/app/workers/functions.php index c9f925493..cc276ed52 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -278,8 +278,8 @@ class FunctionsV1 'time' => 0, ]); - if(false === $execution || ($execution instanceof Document && $execution->isEmpty())) { - throw new Exception('Failed to create or read execution'); + if(false === $execution) { + throw new Exception('Failed to create execution'); } Authorization::reset();