Merge pull request #129 from kra-mo/online-managers-improvements
Retry all online managers on ConnectionError
This commit is contained in:
@@ -36,7 +36,7 @@ class OnlineCoverManager(Manager):
|
|||||||
"""Manager that downloads game covers from URLs"""
|
"""Manager that downloads game covers from URLs"""
|
||||||
|
|
||||||
run_after = (LocalCoverManager,)
|
run_after = (LocalCoverManager,)
|
||||||
retryable_on = (HTTPError, SSLError)
|
retryable_on = (HTTPError, SSLError, ConnectionError)
|
||||||
|
|
||||||
def save_composited_cover(
|
def save_composited_cover(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ from src.utils.steam import (
|
|||||||
class SteamAPIManager(AsyncManager):
|
class SteamAPIManager(AsyncManager):
|
||||||
"""Manager in charge of completing a game's data from the Steam API"""
|
"""Manager in charge of completing a game's data from the Steam API"""
|
||||||
|
|
||||||
retryable_on = (HTTPError, SSLError)
|
retryable_on = (HTTPError, SSLError, ConnectionError)
|
||||||
|
|
||||||
steam_api_helper: SteamAPIHelper = None
|
steam_api_helper: SteamAPIHelper = None
|
||||||
steam_rate_limiter: SteamRateLimiter = None
|
steam_rate_limiter: SteamRateLimiter = None
|
||||||
|
|||||||
Reference in New Issue
Block a user