1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

Removed not working co-runs

This commit is contained in:
Eldad Fux 2021-01-26 21:16:03 +02:00
parent d908606509
commit fdd413a4b3
2 changed files with 4 additions and 10 deletions

View file

@ -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:

View file

@ -214,7 +214,7 @@ class Database
/**
* @param array $data
*
* @return Document|bool
* @return Document
*
* @throws AuthorizationException
* @throws StructureException