retry on fail, retry on http status codes

This commit is contained in:
simon
2019-05-29 15:27:37 -04:00
parent 6f0637dc3d
commit e15cab98ef
4 changed files with 216 additions and 40 deletions

24
test/web.py Normal file
View File

@@ -0,0 +1,24 @@
from flask import Flask, Response
import time
app = Flask(__name__)
@app.route("/")
def hello():
time.sleep(90)
return "Hello World!"
@app.route("/500")
def e500():
return Response(status=500)
@app.route("/404")
def e404():
return Response(status=404)
if __name__ == "__main__":
app.run(port=9999)