mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
Trying to cheat
This commit is contained in:
parent
2cfa97782c
commit
829dcc9a56
@ -1,6 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
class Query:
|
class Query:
|
||||||
@ -365,6 +366,10 @@ class Query:
|
|||||||
from requests.adapters import HTTPAdapter
|
from requests.adapters import HTTPAdapter
|
||||||
from urllib3.util.retry import Retry
|
from urllib3.util.retry import Retry
|
||||||
|
|
||||||
|
# sleep a little, because we querying github too often
|
||||||
|
print("Request, is mutation", is_mutation)
|
||||||
|
time.sleep(0.5)
|
||||||
|
|
||||||
def requests_retry_session(
|
def requests_retry_session(
|
||||||
retries=5,
|
retries=5,
|
||||||
backoff_factor=0.5,
|
backoff_factor=0.5,
|
||||||
|
Loading…
Reference in New Issue
Block a user