def METHOD_NAME(sender, status, subject):
    if status == STATUS_STARTED:
        status = "RUNNING"
    else:
        status = status.upper()
    _save_status(status, subject)
    _cleanup(subject.app_name, subject.namespace)