def heartbeat(request):
info = await asyncio.gather(archives.heartbeat(),
balrog.heartbeat(),
bedrock.heartbeat(),
bouncer.heartbeat(),
buildhub.heartbeat(),
crash_stats.heartbeat(),
product_details.heartbeat(),
telemetry.heartbeat())
status = all(info) and 200 or 503
return web.json_response({"archive": info[0],
"balrog": info[1],
"bedrock": info[2],
"bouncer": info[3],
"buildhub": info[4],
"crash-stats": info[5],
"product-details": info[6],
"telemetry": info[7]},
status=status)
评论列表
文章目录