Fix cold-start bug
This commit is contained in:
parent
20bc1ab00e
commit
d2ffa3e7c6
2 changed files with 2 additions and 3 deletions
|
@ -1216,7 +1216,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||||
variables: $vars,
|
variables: $vars,
|
||||||
timeout: $function->getAttribute('timeout', 0),
|
timeout: $function->getAttribute('timeout', 0),
|
||||||
image: $runtime['image'],
|
image: $runtime['image'],
|
||||||
source: $build->getAttribute('path', ''),
|
source: $deployment->getAttribute('path', ''),
|
||||||
entrypoint: $deployment->getAttribute('entrypoint', ''),
|
entrypoint: $deployment->getAttribute('entrypoint', ''),
|
||||||
path: $path,
|
path: $path,
|
||||||
method: $method,
|
method: $method,
|
||||||
|
|
|
@ -130,7 +130,6 @@ Server::setResource('execute', function () {
|
||||||
|
|
||||||
/** Execute function */
|
/** Execute function */
|
||||||
try {
|
try {
|
||||||
\var_dump($build->getAttribute('path', ''));
|
|
||||||
$client = new Executor(App::getEnv('_APP_EXECUTOR_HOST'));
|
$client = new Executor(App::getEnv('_APP_EXECUTOR_HOST'));
|
||||||
$executionResponse = $client->createExecution(
|
$executionResponse = $client->createExecution(
|
||||||
projectId: $project->getId(),
|
projectId: $project->getId(),
|
||||||
|
@ -140,7 +139,7 @@ Server::setResource('execute', function () {
|
||||||
variables: $vars,
|
variables: $vars,
|
||||||
timeout: $function->getAttribute('timeout', 0),
|
timeout: $function->getAttribute('timeout', 0),
|
||||||
image: $runtime['image'],
|
image: $runtime['image'],
|
||||||
source: $build->getAttribute('path', ''),
|
source: $deployment->getAttribute('path', ''),
|
||||||
entrypoint: $deployment->getAttribute('entrypoint', ''),
|
entrypoint: $deployment->getAttribute('entrypoint', ''),
|
||||||
path: $path,
|
path: $path,
|
||||||
method: $method,
|
method: $method,
|
||||||
|
|
Loading…
Reference in a new issue