I have Flask App deployed with nginx and gunicorn.
while requesting post request from my flask app, it is executed twice.
@app.route("/search", methods=['POST'])
def search():
r = requests.post('http://localhost:6800/schedule.json', data='{"project":"rental", "spider":"airbnb"}')
return json.dumps(r.json())
Here 2 different spider jobs are created.