diff --git a/app/config/collections.php b/app/config/collections.php index fc7af6b7c7..6c4388db9a 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -2007,7 +2007,7 @@ $collections = [ '$id' => 'stderr', 'type' => Database::VAR_STRING, 'format' => '', - 'size' => 1048576, + 'size' => 1000000, 'signed' => true, 'required' => false, 'default' => '', @@ -2018,7 +2018,7 @@ $collections = [ '$id' => 'stdout', 'type' => Database::VAR_STRING, 'format' => '', - 'size' => 1048576, + 'size' => 1000000, 'signed' => true, 'required' => false, 'default' => '', @@ -2124,7 +2124,7 @@ $collections = [ '$id' => 'stdout', 'type' => Database::VAR_STRING, 'format' => '', - 'size' => 1048576, + 'size' => 1000000, 'signed' => true, 'required' => false, 'default' => null, @@ -2135,7 +2135,7 @@ $collections = [ '$id' => 'stderr', 'type' => Database::VAR_STRING, 'format' => '', - 'size' => 1048576, + 'size' => 1000000, 'signed' => true, 'required' => false, 'default' => null, diff --git a/app/executor.php b/app/executor.php index 0585ca7287..31f1738f53 100644 --- a/app/executor.php +++ b/app/executor.php @@ -283,8 +283,8 @@ App::post('/v1/runtimes') $endTime = \time(); $container = array_merge($container, [ 'status' => 'ready', - 'stdout' => \mb_substr(\utf8_encode($stdout), 0, 1048576), // Limit to 1MB - 'stderr' => \mb_substr(\utf8_encode($stderr), 0, 1048576), // Limit to 1MB + 'stdout' => \mb_strcut(\utf8_encode($stdout), 0, 1000000), // Limit to 1MB + 'stderr' => \mb_strcut(\utf8_encode($stderr), 0, 1000000), // Limit to 1MB 'startTime' => $startTime, 'endTime' => $endTime, 'duration' => $endTime - $startTime, @@ -501,8 +501,8 @@ App::post('/v1/execution') $execution = [ 'status' => $functionStatus, 'statusCode' => $statusCode, - 'stdout' => \mb_substr(\utf8_encode($stdout), 0, 1048576), // Limit to 1MB - 'stderr' => \mb_substr(\utf8_encode($stderr), 0, 1048576), // Limit to 1MB + 'stdout' => \mb_strcut(\utf8_encode($stdout), 0, 1000000), // Limit to 1MB + 'stderr' => \mb_strcut(\utf8_encode($stderr), 0, 1000000), // Limit to 1MB 'time' => $executionTime, ]; diff --git a/open-runtimes b/open-runtimes new file mode 160000 index 0000000000..c4f2c21404 --- /dev/null +++ b/open-runtimes @@ -0,0 +1 @@ +Subproject commit c4f2c21404011a5a75dc891ff892695534b2df76