示例#1
0
文件: ha.py 项目: bakuppus/awx-demo
def on_instance_group_saved(sender,
                            instance,
                            created=False,
                            raw=False,
                            **kwargs):
    from awx.main.tasks import apply_cluster_membership_policies
    connection.on_commit(
        lambda: apply_cluster_membership_policies.apply_async())
示例#2
0
def schedule_policy_task():
    from awx.main.tasks import apply_cluster_membership_policies
    connection.on_commit(
        lambda: apply_cluster_membership_policies.apply_async())
示例#3
0
文件: ha.py 项目: wikivoks/awx
def on_instance_deleted(sender, instance, using, **kwargs):
    from awx.main.tasks import apply_cluster_membership_policies
    connection.on_commit(
        lambda: apply_cluster_membership_policies.apply_async())