ConnectionTest im Backend funktioniert jetzt
This commit is contained in:
@@ -227,4 +227,16 @@ class ComfyUi implements ApiPluginInterface
|
||||
usleep(500000); // Wait for 0.5 seconds before polling again
|
||||
}
|
||||
}
|
||||
|
||||
public function testConnection(array $data): bool
|
||||
{
|
||||
$apiUrl = rtrim($data['api_url'], '/');
|
||||
try {
|
||||
$response = Http::timeout(5)->get($apiUrl . '/queue');
|
||||
return $response->successful();
|
||||
} catch (\Exception $e) {
|
||||
$this->logError('ComfyUI connection test failed.', ['error' => $e->getMessage()]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user