import time
def main(context):
if context.req.method == "POST":
context.log(context.req.body)
data = json.loads(context.req.body)
count = data.get('rq')
for i in range(0, count):
context.log(i)
time.sleep(2)
return context.res.send("200")
else:
return context.res.send("400")