Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-10-08 05:36:27 +02:00
padre cc6f8b733e
commit a694e1085c

Ver fichero

@@ -176,11 +176,11 @@ export class PythonBridge extends EventEmitter {
let timeoutDuration = 5000; // Default 5s let timeoutDuration = 5000; // Default 5s
if (command === 'set_target') { if (command === 'set_target') {
timeoutDuration = 10000; // 10s for target operations timeoutDuration = 100000; // 100s for target operations
} else if (['sample', 'observe', 'get_state'].includes(command)) { } else if (['sample', 'observe', 'get_state'].includes(command)) {
timeoutDuration = 15000; // 15s for quantum operations timeoutDuration = 150000; // 150s for quantum operations
} else if (['get_platform_info', 'get_available_targets', 'list_kernels'].includes(command)) { } else if (['get_platform_info', 'get_available_targets', 'list_kernels'].includes(command)) {
timeoutDuration = 3000; // 3s for simple info operations timeoutDuration = 30000; // 30s for simple info operations
} }
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
this.requestQueue.delete(requestId); this.requestQueue.delete(requestId);