Merge pull request #1790 from KrishavRajSingh/main

fix: check healthy status when init
This commit is contained in:
Krishav 2025-10-08 15:43:05 +05:30 committed by GitHub
commit 116050f152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ You can modify the sandbox environment for development or to add new capabilitie
``` ```
cd backend/sandbox/docker cd backend/sandbox/docker
docker compose build docker compose build
docker push kortix/suna:0.1.3.20 docker push kortix/suna:0.1.3.21
``` ```
3. Test your changes locally using docker-compose 3. Test your changes locally using docker-compose

View File

@ -419,7 +419,7 @@ app.post('/api/init', async (req, res) => {
const {api_key} = req.body; const {api_key} = req.body;
const result = await browserAutomation.init(api_key); const result = await browserAutomation.init(api_key);
if (result.status === "initialized") { if (result.status === "initialized" || result.status === "healthy") {
res.status(200).json({ res.status(200).json({
"status": "healthy", "status": "healthy",
"service": "browserApi" "service": "browserApi"

View File

@ -6,7 +6,7 @@ services:
dockerfile: ${DOCKERFILE:-Dockerfile} dockerfile: ${DOCKERFILE:-Dockerfile}
args: args:
TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64} TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64}
image: kortix/suna:0.1.3.20 image: kortix/suna:0.1.3.21
ports: ports:
- "6080:6080" # noVNC web interface - "6080:6080" # noVNC web interface
- "5901:5901" # VNC port - "5901:5901" # VNC port

View File

@ -308,8 +308,8 @@ class Configuration:
STRIPE_PRODUCT_ID_STAGING: str = 'prod_SCgIj3G7yPOAWY' STRIPE_PRODUCT_ID_STAGING: str = 'prod_SCgIj3G7yPOAWY'
# Sandbox configuration # Sandbox configuration
SANDBOX_IMAGE_NAME = "kortix/suna:0.1.3.20" SANDBOX_IMAGE_NAME = "kortix/suna:0.1.3.21"
SANDBOX_SNAPSHOT_NAME = "kortix/suna:0.1.3.20" SANDBOX_SNAPSHOT_NAME = "kortix/suna:0.1.3.21"
SANDBOX_ENTRYPOINT = "/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf" SANDBOX_ENTRYPOINT = "/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf"
# LangFuse configuration # LangFuse configuration

View File

@ -687,9 +687,9 @@ class SetupWizard:
) )
print_info("Create a snapshot with these exact settings:") print_info("Create a snapshot with these exact settings:")
print_info( print_info(
f" - Name:\t\t{Colors.GREEN}kortix/suna:0.1.3.20{Colors.ENDC}") f" - Name:\t\t{Colors.GREEN}kortix/suna:0.1.3.21{Colors.ENDC}")
print_info( print_info(
f" - Snapshot name:\t{Colors.GREEN}kortix/suna:0.1.3.20{Colors.ENDC}") f" - Snapshot name:\t{Colors.GREEN}kortix/suna:0.1.3.21{Colors.ENDC}")
print_info( print_info(
f" - Entrypoint:\t{Colors.GREEN}/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf{Colors.ENDC}" f" - Entrypoint:\t{Colors.GREEN}/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf{Colors.ENDC}"
) )