def checks_run_recently(request):
 ten_mins = (datetime.utcnow().replace(tzinfo=utc) - timedelta(minutes=10))
 most_recent = StatusCheckResult.objects.filter(time_complete__gte=ten_mins)
 if most_recent.exists():
  return HttpResponse('Checks running')
 return HttpResponse('Checks not running')

def checks_run_recently ( request ) : ten_mins = ( datetime . utcnow ( ) . replace ( tzinfo = utc ) - timedelta ( minutes = 10 ) ) most_recent = StatusCheckResult . objects . filter ( time_complete__gte = ten_mins ) if most_recent . exists ( ) : return HttpResponse ( 'Checks running' ) return HttpResponse ( 'Checks not running' )
checks whether or not stuff is running by looking to see if checks have run in last 10 mins .