Update app/routes/jobs.py

This commit is contained in:
2026-01-05 10:53:17 +00:00
parent 586501b94a
commit 3572a99cc0

View File

@@ -186,7 +186,7 @@ def submit_step1():
# If successful, run scenario scan to get available scenarios
print(f"[DEBUG] Running scenario scan...")
scan_cmd = f"sshpass -p '{ssh_password}' ssh {ssh_options} {ssh_user}@{ssh_host} 'python3 TPF/Sensor_hub_repo/Tools/TPF/scenario_scan.py'"
scan_cmd = f"sshpass -p '{ssh_password}' ssh {ssh_options} {ssh_user}@{ssh_host} 'python3 /home/asf/testarena_backend/TPF/Sensor_hub_repo/tools/TPF/scenario_scan.py'"
print(f"[DEBUG] Executing scan command: {scan_cmd.replace(ssh_password, '***')}")
scan_result = subprocess.run(scan_cmd, shell=True, capture_output=True, text=True, timeout=120)