diff options
Diffstat (limited to 'app.py')
| -rw-r--r-- | app.py | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -122,7 +122,7 @@ def generate_files(): | |||
| 122 | 122 | ||
| 123 | try: | 123 | try: |
| 124 | result = subprocess.run( | 124 | result = subprocess.run( |
| 125 | cmd, cwd=bonsai_dir, capture_output=True, text=True, timeout=30 | 125 | cmd, cwd=bonsai_dir, capture_output=True, text=True, timeout=300 |
| 126 | ) | 126 | ) |
| 127 | 127 | ||
| 128 | if result.returncode != 0: | 128 | if result.returncode != 0: |
| @@ -148,7 +148,7 @@ def generate_files(): | |||
| 148 | return jsonify({"error": error_msg}), 500 | 148 | return jsonify({"error": error_msg}), 500 |
| 149 | 149 | ||
| 150 | except subprocess.TimeoutExpired: | 150 | except subprocess.TimeoutExpired: |
| 151 | error_msg = "Bonsai execution timed out after 30 seconds" | 151 | error_msg = "Bonsai execution timed out after 5 minutes" |
| 152 | if TEST_ENVIRONMENT: | 152 | if TEST_ENVIRONMENT: |
| 153 | print(f"WARNING: {error_msg}. Creating dummy files for testing.") | 153 | print(f"WARNING: {error_msg}. Creating dummy files for testing.") |
| 154 | edges_content = "1,2,0.5\n2,3,0.3\n1,3,0.8\n" | 154 | edges_content = "1,2,0.5\n2,3,0.3\n1,3,0.8\n" |
