Enhance TED scraper and worker initialization with startup catch-up logic
continuous-integration/drone/push Build is passing

- Introduced a mutex to ensure only one TED scraper run executes at a time, preventing concurrent executions during startup and scheduled runs.
- Implemented a mechanism to check if today's TED scrape has already been completed during startup, logging appropriate messages for both completed and new runs.
- Added startup catch-up logic for tender translations and unprocessed notices, ensuring that any missed tasks are executed without blocking the application startup.

This update improves the reliability and efficiency of the TED scraper and worker processes, ensuring that all necessary tasks are completed after a server restart.
This commit is contained in:
Mazyar
2026-06-28 00:05:10 +03:30
parent 69445130ce
commit 582f8b5c02
6 changed files with 197 additions and 8 deletions
Executable → Regular
View File