fix: increase start_service timeout for MBE to 60s
- MBE needs up to 60s to load model - Default timeout (30s) was too short causing timeout errors
This commit is contained in:
@@ -654,7 +654,8 @@ case 'search_keyword': {
|
|||||||
}
|
}
|
||||||
case 'start_service': {
|
case 'start_service': {
|
||||||
const mbUrl = detectBaseUrl()
|
const mbUrl = detectBaseUrl()
|
||||||
return { url: `${mbUrl}/api/v2/service/start`, method: 'POST', body: { name: a.name } }
|
const timeout = a.name === 'mbe' ? 60000 : undefined // MBE needs 60s to load model
|
||||||
|
return { url: `${mbUrl}/api/v2/service/start`, method: 'POST', body: { name: a.name }, timeout }
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Admin Panel ---
|
// --- Admin Panel ---
|
||||||
|
|||||||
Reference in New Issue
Block a user