1
0
Fork 0
mirror of synced 2024-09-18 18:40:24 +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(); $executionId = ID::unique();
var_dump("creating execution document");
$execution = new Document([ $execution = new Document([
'$id' => $executionId, '$id' => $executionId,

View file

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

View file

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

View file

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