add 100 max retries

This commit is contained in:
2026-03-04 05:54:29 +00:00
parent b5d6fc2152
commit 2748a5a75b
2 changed files with 21 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ screen](https://gitea.bubbletea.dev/shibao/szuru-eink-bot/raw/branch/master/eink
- Fetches random images from a configurable Szurubooru instance.
- Resizes and dithered images for e-ink display compatibility.
- Supports monochrome and color dithering (for compatible displays).
- Filters images by an optional allowed username.
- Uploads processed images to a Waveshare e-ink screen.
- Configurable via environment variables.
- Designed to run as a Docker container on a cron job.
@@ -41,7 +42,9 @@ display.
**Note:** For `EPD_TYPE`, refer to the `epd/epd_config.py` file for a full list
of supported display types and their corresponding string labels. For color
displays, ensure `DITHERING_MODE` is set to `color`.
displays, ensure `DITHERING_MODE` is set to `color`. The bot
will retry a maximum of 100 times to find a valid image (matching the user filter,
if provided) before giving up.
### 3. Build and Run with Docker Compose