diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 5ba023983d..820cbf3a14 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -262,6 +262,19 @@ App::put('/v1/functions/:functionId') 'timeout' => $timeout, ])); + if ($next) { + ResqueScheduler::enqueueAt($next, 'v1-functions', 'FunctionsV1', [ + + ]); + + // ->setParam('projectId', $project->getId()) + // ->setParam('event', $route->getLabel('event', '')) + // ->setParam('payload', []) + // ->setParam('functionId', null) + // ->setParam('executionId', null) + // ->setParam('trigger', 'event') + } + if (false === $function) { throw new Exception('Failed saving function to DB', 500); }