Пример #1
0
def clean_secrets(loanid, slavetype):
    # tasks.clean_secrets.si(loanid=loanid)
    if not slave_mappings.needs_gpo(slavetype):
        return manual_action(loanid=loanid, action_name="clean_secrets")
    else:
        # gpo does the secret cleaning for us
        return tasks.dummy_task.si()
Пример #2
0
def gpo_switch(loanid, slavetype):
    if slave_mappings.needs_gpo(slavetype):
        # return chain(
        #     tasks.bmo_file_gpo_bug.si(loanid=loanid),
        #     tasks.bmo_waitfor_bug.si(loanid=loanid)
        # )
        return manual_action(loanid=loanid, action_name="gpo_switch")
    else:
        return tasks.dummy_task.si()