Job 1788151471095

Command: powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop';$root='C:\Users\ash\Documents\ShopeeApi';$py=Join-Path $root '.venv\Scripts\python.exe';if(-not(Test-Path $py)){throw 'VENV_PYTHON_MISSING'};$c=Get-NetTCPConnection -LocalPort 8132 -State Listen -ErrorAction SilentlyContinue;if($c){Stop-Process -Id $c.OwningProcess -Force;Start-Sleep -Seconds 1};$log=Join-Path $root 'data\logs';New-Item -ItemType Directory -Force -Path $log|Out-Null;Start-Process -FilePath $py -ArgumentList '-m','uvicorn','app.main:app','--host','127.0.0.1','--port','8132' -WorkingDirectory $root -WindowStyle Hidden -RedirectStandardOutput (Join-Path $log 'uvicorn-auto-ready-venv.stdout.log') -RedirectStandardError (Join-Path $log 'uvicorn-auto-ready-venv.stderr.log');$ok=$false;for($i=0;$i -lt 20;$i++){Start-Sleep -Milliseconds 500;try{$r=Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8132/openapi.json' -TimeoutSec 2;if($r.StatusCode -eq 200){$ok=$true;break}}catch{}};if(-not $ok){$e=Join-Path $log 'uvicorn-auto-ready-venv.stderr.log';if(Test-Path $e){Get-Content $e -Tail 100};throw 'SHOPEE_START_FAILED'};$j=$r.Content|ConvertFrom-Json;$has=$null -ne $j.paths.'/api/operations/ready-to-ship/auto-arrange';[pscustomobject]@{listen=[bool](Get-NetTCPConnection -LocalPort 8132 -State Listen -ErrorAction SilentlyContinue);openapi_status=$r.StatusCode;auto_ready_endpoint=$has;production_bridge_8765=[bool](Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue);pid=(Get-NetTCPConnection -LocalPort 8132 -State Listen).OwningProcess}|ConvertTo-Json -Compress"
Directory: projects
Status: RUNNING
Exit code: None

Cancel Job Rerun Command Refresh

{"listen":true,"openapi_status":200,"auto_ready_endpoint":true,"production_bridge_8765":true,"pid":8168}