mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Prep for cron schedule
This commit is contained in:
parent
a10177b9fe
commit
1b876028e7
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue