fix: 拉低timeout
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ class Signup:
|
||||
|
||||
def sign_up(self):
|
||||
try:
|
||||
func_timeout(10 * 60, self._sign_up)
|
||||
func_timeout(5 * 60, self._sign_up)
|
||||
except Interrupted as e:
|
||||
logger.error("error in signup: {}".format(e))
|
||||
raise e
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ pm = ThreadPoolManager(max_threads)
|
||||
def click_verify_link(link):
|
||||
driver = get_webdriver()
|
||||
try:
|
||||
func_timeout(10 * 60, cloudflare_solver.bypass, args=(link, driver))
|
||||
func_timeout(5 * 60, cloudflare_solver.bypass, args=(link, driver))
|
||||
logger.info('Email verified')
|
||||
except FunctionTimedOut:
|
||||
logger.warning('Function timed out')
|
||||
|
||||
Reference in New Issue
Block a user