mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
feat: check async execution
This commit is contained in:
parent
3bd3b8d8e9
commit
586fd46bcd
1 changed files with 3 additions and 4 deletions
|
|
@ -279,9 +279,11 @@ $server->job()
|
||||||
|
|
||||||
$type = $payload['type'] ?? '';
|
$type = $payload['type'] ?? '';
|
||||||
$events = $payload['events'] ?? [];
|
$events = $payload['events'] ?? [];
|
||||||
$project = new Document($payload['project'] ?? []);
|
|
||||||
$data = $payload['data'] ?? '';
|
$data = $payload['data'] ?? '';
|
||||||
|
$project = new Document($payload['project'] ?? []);
|
||||||
|
$function = new Document($payload['function'] ?? []);
|
||||||
$user = new Document($payload['user'] ?? []);
|
$user = new Document($payload['user'] ?? []);
|
||||||
|
var_dump("Function : ", $function);
|
||||||
|
|
||||||
if ($project->getId() === 'console') {
|
if ($project->getId() === 'console') {
|
||||||
return;
|
return;
|
||||||
|
|
@ -325,9 +327,6 @@ $server->job()
|
||||||
/**
|
/**
|
||||||
* Handle Schedule and HTTP execution.
|
* Handle Schedule and HTTP execution.
|
||||||
*/
|
*/
|
||||||
$function = new Document($payload['function'] ?? []);
|
|
||||||
var_dump($function);
|
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'http':
|
case 'http':
|
||||||
$jwt = $payload['jwt'] ?? '';
|
$jwt = $payload['jwt'] ?? '';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue