def METHOD_NAME():
    queue = getattr(settings, 'CELERY_PERIODIC_QUEUE', 'celery')
    try:
        blockage = Heartbeat(queue).get_blockage_duration()
        if blockage > datetime.timedelta(minutes=5):
            return False
        return True
    except HeartbeatNeverRecorded:
        return False