mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Removed not working co-runs
This commit is contained in:
@@ -184,9 +184,7 @@ class FunctionsV1
|
||||
|
||||
Console::success('Triggered function: '.$event);
|
||||
|
||||
Swoole\Coroutine\run(function () use ($projectId, $database, $function, $event, $payload) {
|
||||
$this->execute('event', $projectId, '', $database, $function, $event, $payload);
|
||||
});
|
||||
$this->execute('event', $projectId, '', $database, $function, $event, $payload);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -242,9 +240,7 @@ class FunctionsV1
|
||||
'scheduleOriginal' => $function->getAttribute('schedule', ''),
|
||||
]); // Async task rescheduale
|
||||
|
||||
Swoole\Coroutine\run(function () use ($trigger, $projectId, $executionId, $database, $function) {
|
||||
$this->execute($trigger, $projectId, $executionId, $database, $function);
|
||||
});
|
||||
$this->execute($trigger, $projectId, $executionId, $database, $function);
|
||||
|
||||
break;
|
||||
|
||||
@@ -257,9 +253,7 @@ class FunctionsV1
|
||||
throw new Exception('Function not found ('.$functionId.')');
|
||||
}
|
||||
|
||||
Swoole\Coroutine\run(function () use ($trigger, $projectId, $executionId, $database, $function) {
|
||||
$this->execute($trigger, $projectId, $executionId, $database, $function);
|
||||
});
|
||||
$this->execute($trigger, $projectId, $executionId, $database, $function);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -214,7 +214,7 @@ class Database
|
||||
/**
|
||||
* @param array $data
|
||||
*
|
||||
* @return Document|bool
|
||||
* @return Document
|
||||
*
|
||||
* @throws AuthorizationException
|
||||
* @throws StructureException
|
||||
|
||||
Reference in New Issue
Block a user