You've already forked Mailu
							
							
				mirror of
				https://github.com/Mailu/Mailu.git
				synced 2025-10-30 23:37:43 +02:00 
			
		
		
		
	Import tenacy and fix syntax errors
This commit is contained in:
		| @@ -4,11 +4,12 @@ import jinja2 | ||||
| import os | ||||
| import socket | ||||
| import glob | ||||
| import tenacity | ||||
| from tenacity import retry | ||||
|  | ||||
| convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ)) | ||||
|  | ||||
| @retry(stop=stop_after_attempt(10), wait=wait_random(min=2, max=5)) | ||||
| @retry(stop=tenacity.stop_after_attempt(10), wait=tenacity.wait_random(min=2, max=5)) | ||||
| def resolve(): | ||||
| 	os.environ["FRONT_ADDRESS"] = socket.gethostbyname(os.environ.get("FRONT_ADDRESS", "front")) | ||||
| 	os.environ["REDIS_ADDRESS"] = socket.gethostbyname(os.environ.get("REDIS_ADDRESS", "redis")) | ||||
|   | ||||
| @@ -5,11 +5,12 @@ import os | ||||
| import socket | ||||
| import glob | ||||
| import shutil | ||||
| import tenacity | ||||
| from tenacity import retry | ||||
|  | ||||
| convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ)) | ||||
|  | ||||
| @retry(stop=stop_after_attempt(10), wait=wait_random(min=2, max=5)) | ||||
| @retry(stop=tenacity.stop_after_attempt(10), wait=tenacity.wait_random(min=2, max=5)) | ||||
| def resolve(): | ||||
| 	os.environ["FRONT_ADDRESS"] = socket.gethostbyname(os.environ.get("FRONT_ADDRESS", "front")) | ||||
|  | ||||
|   | ||||
| @@ -4,11 +4,12 @@ import jinja2 | ||||
| import os | ||||
| import socket | ||||
| import glob | ||||
| import tenacity | ||||
| from tenacity import retry | ||||
|  | ||||
| convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ)) | ||||
|  | ||||
| @retry(stop=stop_after_attempt(10), wait=wait_random(min=2, max=5)) | ||||
| @retry(stop=tenacity.stop_after_attempt(10), wait=tenacity.wait_random(min=2, max=5)) | ||||
| def resolve(): | ||||
| 	os.environ["FRONT_ADDRESS"] = socket.gethostbyname(os.environ.get("FRONT_ADDRESS", "front")) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user