Fix executions
This commit is contained in:
parent
1ce4eee34c
commit
5fb41fd216
4 changed files with 5 additions and 4 deletions
|
@ -1704,7 +1704,6 @@ App::post('/v1/functions/:functionId/executions')
|
|||
}
|
||||
|
||||
$executionId = ID::unique();
|
||||
var_dump("creating execution document");
|
||||
|
||||
$execution = new Document([
|
||||
'$id' => $executionId,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -108,7 +108,6 @@ class HTTPTest extends Scope
|
|||
'0.14.x',
|
||||
];
|
||||
|
||||
// var_dump($files);
|
||||
foreach ($files as $file) {
|
||||
if (in_array($file, ['.', '..'])) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue