You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both scripts ship with a template payload under the `REQUEST` constant. Update the payload to target the exports and parameters you want to test—for example, changing `execution_dag`, `target_exports`, or `kwargs.course_id`.
200
+
201
+
To run the Python version:
202
+
203
+
```bash
204
+
python scripts/generic_websocket_dashboard.py
205
+
```
206
+
207
+
The script opens a websocket to `/wsapi/communication_protocol`, sends the JSON request, and pretty-prints any responses. Install dependencies with `pip install aiohttp` if needed.
208
+
209
+
The Node.js version follows the same pattern. After adjusting `REQUEST`, run:
210
+
211
+
```bash
212
+
node scripts/generic_websocket_dashboard.js
213
+
```
214
+
215
+
If you copy the script into a browser console, delete the `require('ws')` line so the native `WebSocket` implementation is used.
216
+
217
+
Use these scripts to confirm executor behaviour during development—for example, to observe partial updates or to verify that query parameters are wired correctly before embedding a request in a Dash dashboard.
218
+
186
219
## 11. Iterate and Maintain
187
220
188
221
* Profile slow queries; large joins may need new helpers or precomputed reducers.
0 commit comments