INNER CODE UNIT · Python
fail_rate
ahembree/ansible-hms-docker · .github/workflows/scripts/check_containers.py:97
fail_rate = failure_codes/requests_made
else:
logging.error(f'Did not make any requests, exiting')
sys.exit(1)
threshold = 0.34
if fail_rate > threshold:
logging.error(f'Failure rate exceeded {threshold}, it was {fail_rate}')
sys.exit(1)
else:
logging.info(f'Failure rate: {fail_rate}')
sys.exit(0)
if __name__ == '__main__':
main()