mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fix Functions Worker
This commit is contained in:
parent
1cd84aacc7
commit
0b17a737fe
1 changed files with 7 additions and 7 deletions
|
|
@ -28,18 +28,18 @@ Authorization::setDefaultStatus(false);
|
|||
|
||||
Server::setResource('execute', function () {
|
||||
return function (
|
||||
Func $queueForFunctions,
|
||||
Database $dbForProject,
|
||||
Client $statsd,
|
||||
Database $dbForProject,
|
||||
Document $project,
|
||||
Document $function,
|
||||
Func $queueForFunctions,
|
||||
string $trigger,
|
||||
string $data = null,
|
||||
?Document $user = null,
|
||||
string $jwt = null,
|
||||
string $event = null,
|
||||
string $eventData = null,
|
||||
?Document $user = null,
|
||||
string $data = null,
|
||||
string $executionId = null,
|
||||
string $jwt = null,
|
||||
Connection $queueConnection,
|
||||
) {
|
||||
$user ??= new Document();
|
||||
|
|
@ -163,8 +163,6 @@ Server::setResource('execute', function () {
|
|||
|
||||
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
|
||||
|
||||
$connection = $
|
||||
|
||||
/** Trigger Webhook */
|
||||
$executionModel = new Execution();
|
||||
$executionUpdate = new Event(Event::WEBHOOK_QUEUE_NAME, Event::WEBHOOK_CLASS_NAME, $queueConnection);
|
||||
|
|
@ -315,6 +313,7 @@ $server->job()
|
|||
user: $user,
|
||||
jwt: $jwt,
|
||||
statsd: $statsd,
|
||||
queueConnection: $queue
|
||||
);
|
||||
break;
|
||||
case 'schedule':
|
||||
|
|
@ -331,6 +330,7 @@ $server->job()
|
|||
user: null,
|
||||
jwt: null,
|
||||
statsd: $statsd,
|
||||
queueConnection: $queue
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue