Compare commits

...
Author SHA1 Message Date
loks0nandClaude Sonnet 4.6 e8c6f1186c fix: rename buildTimeout to timeout in build queue payload, remove jwtExpiry alias
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 15:09:46 +01:00
loks0nandClaude Sonnet 4.6 d58884236a feat: use per-build timeout from queue message payload
Fall back to _APP_COMPUTE_BUILD_TIMEOUT env var when buildTimeout is
not present in the message, keeping self-hosted behaviour unchanged.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 13:31:29 +01:00
@@ -592,10 +592,9 @@ class Builds extends Action
$cpus = $spec['cpus'] ?? APP_COMPUTE_CPUS_DEFAULT;
$memory = max($spec['memory'] ?? APP_COMPUTE_MEMORY_DEFAULT, $minMemory);
$timeout = (int) System::getEnv('_APP_COMPUTE_BUILD_TIMEOUT', 900);
$timeout = (int) ($payload['timeout'] ?? System::getEnv('_APP_COMPUTE_BUILD_TIMEOUT', 900));
$jwtExpiry = (int) System::getEnv('_APP_COMPUTE_BUILD_TIMEOUT', 900);
$jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $jwtExpiry, 0);
$jwtObj = new JWT(System::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', $timeout, 0);
$apiKey = $jwtObj->encode([
'projectId' => $project->getId(),