migrate session handling to aioweb_tls/refactoring of helpers
This commit is contained in:
1 parent
3a8a12ac6e
commit
1441e7179c
10 files changed
+244
-295
No files matched your search
@@ -11,6 +11,7 @@ from json import JSONDecodeError
|
||||
|
||||
import aiohttp
|
||||
import requests
|
||||
from aioweb import AiowebError
|
||||
from curl_cffi.requests.errors import RequestsError
|
||||
from pymongo.errors import PyMongoError
|
||||
|
||||
@@ -27,6 +28,7 @@ LOGGERS = [
|
||||
|
||||
RETRY_LIMIT = 5
|
||||
RETRY_WAIT = 3
|
||||
CYCLE_DELAY = 0.30
|
||||
MIN_BACKOFF_DELAY = 0.1
|
||||
MAX_BACKOFF_DELAY = 2.0
|
||||
FAILURE_DELAY = 3
|
||||
@@ -44,6 +46,7 @@ EXPECTED_TASK_ERRORS = (
|
||||
requests.HTTPError,
|
||||
PyMongoError,
|
||||
JSONDecodeError,
|
||||
AiowebError,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user