mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Enable retries middleware for task
This commit is contained in:
@@ -107,7 +107,7 @@ async def cache_file(book: Book, file_type: str) -> Optional[CachedFile]:
|
||||
)
|
||||
|
||||
|
||||
@broker.task
|
||||
@broker.task(retry_on_error=True)
|
||||
async def cache_file_by_book_id(
|
||||
book_id: int,
|
||||
file_type: str,
|
||||
|
||||
Reference in New Issue
Block a user