in automation/ml_ops/shared/python/actions.py [0:0]
6 lines of code
3 McCabe index (conditional complexity)
def take_action(status):
if status in {'CREATE PENDING', 'CREATE IN_PROGRESS'}:
raise ResourcePending
if status != 'ACTIVE':
raise ResourceFailed
return True