Refactor AI summarization functionality by removing document summarization worker
continuous-integration/drone/push Build is passing

- Removed the DocumentSummarizationWorker and its related scheduling logic from the worker bootstrap.
- Updated the AI summarizer client initialization comment for clarity.
- Added a new error type for cases when tender documents have not been scraped yet, enhancing error handling in the tender service.
- Modified API documentation to reflect changes in AI summary retrieval logic, ensuring accurate descriptions of on-demand summarization behavior.

This update streamlines the AI summarization process by eliminating the document summarization worker, improving overall system efficiency and clarity in error handling.
This commit is contained in:
Mazyar
2026-06-21 11:20:28 +03:30
parent e31bccced6
commit e04cdd1d10
6 changed files with 163 additions and 302 deletions
+1
View File
@@ -9,5 +9,6 @@ var (
ErrTenderNotFound = errors.New("tender: not found")
ErrTenderMissingNoticeID = errors.New("tender: missing notice publication id")
ErrTenderMissingContractFolderID = errors.New("tender: missing contract folder id")
ErrTenderDocumentsNotScraped = errors.New("tender: documents not scraped")
ErrAINotConfigured = errors.New("tender: ai service not configured")
)