1
0
Fork 0
mirror of synced 2024-09-14 16:38:28 +12:00

Fix executions

This commit is contained in:
Matej Bačo 2024-07-03 08:00:17 +00:00
parent 1ce4eee34c
commit 5fb41fd216
4 changed files with 5 additions and 4 deletions

View file

@ -1704,7 +1704,6 @@ App::post('/v1/functions/:functionId/executions')
}
$executionId = ID::unique();
var_dump("creating execution document");
$execution = new Document([
'$id' => $executionId,

View file

@ -823,7 +823,7 @@ services:
hostname: exc1
<<: *x-logging
stop_signal: SIGINT
image: openruntimes/executor:0.5.5
image: openruntimes/executor:0.6.0
restart: unless-stopped
networks:
- appwrite

View file

@ -191,7 +191,6 @@ class Executor
$params = [
'runtimeId' => $runtimeId,
'variables' => $variables,
'body' => $body,
'timeout' => $timeout,
'path' => $path,
'method' => $method,
@ -206,6 +205,10 @@ class Executor
'logging' => $logging,
];
if(!empty($body)) {
$params['body'] = $body;
}
// Safety timeout. Executor has timeout, and open runtime has soft timeout.
// This one shouldn't really happen, but prevents from unexpected networking behaviours.
if ($requestTimeout == null) {

View file

@ -108,7 +108,6 @@ class HTTPTest extends Scope
'0.14.x',
];
// var_dump($files);
foreach ($files as $file) {
if (in_array($file, ['.', '..'])) {
continue;