|
4 | 4 | [](https://github.com/SeleniumHQ/docker-selenium/actions/workflows/nightly.yml) |
5 | 5 | [](https://github.com/SeleniumHQ/docker-selenium/actions/workflows/update-dev-beta-browser-images.yml) |
6 | 6 | [](https://github.com/SeleniumHQ/docker-selenium/releases) |
7 | | -[<img src="https://devin.ai/assets/deepwiki-badge.png" alt="Ask DeepWiki.com" height="20"/>](https://deepwiki.com/SeleniumHQ/docker-selenium) |
| 7 | +[](https://deepwiki.com/SeleniumHQ/docker-selenium) |
8 | 8 |
|
9 | 9 |  |
10 | 10 | [](https://github.com/seleniumhq/docker-selenium/releases/) |
@@ -56,6 +56,7 @@ Talk to us at https://www.selenium.dev/support/ |
56 | 56 | * [Video recording](#video-recording) |
57 | 57 | * [Video recording with dynamic file name based on metadata in tests](#video-recording-with-dynamic-file-name-based-on-metadata-in-tests) |
58 | 58 | * [Video recording and uploading](#video-recording-and-uploading) |
| 59 | +* [Retain recordings for failed sessions only](#retain-recordings-for-failed-sessions-only) |
59 | 60 | * [Dynamic Grid](#dynamic-grid) |
60 | 61 | * [Configuration example](#configuration-example) |
61 | 62 | * [Share volumes config of Dynamic Grid container to node browser containers](#share-volumes-config-of-dynamic-grid-container-to-node-browser-containers) |
@@ -846,7 +847,7 @@ When using in Dynamic Grid, those variables should be combined with the prefix ` |
846 | 847 | | `SE_UPLOAD_CONFIG_FILE_NAME` | `upload.conf` | Config file for remote host instead of set via env variable prefix SE_RCLONE_* | |
847 | 848 | | `SE_UPLOAD_CONFIG_DIRECTORY` | `/opt/bin` | Directory of config file (change it when conf file in another directory is mounted) | |
848 | 849 |
|
849 | | -### Retain recordings for failed sessions only |
| 850 | +## Retain recordings for failed sessions only |
850 | 851 |
|
851 | 852 | In event-driven mode (`SE_VIDEO_EVENT_DRIVEN=true`, the default), the video service subscribes to the Grid's ZeroMQ event bus and reacts to session lifecycle events in real time. This enables a **retain-on-failure** strategy: record every session, but automatically discard the video when the session passes and only keep (and upload) recordings from sessions that fail. |
852 | 853 |
|
|
0 commit comments