示例#1
0
def setup_periodic_tasks(sender, **kwargs):

    from agents.tasks import agent_outages_task
    from core.tasks import core_maintenance_tasks

    sender.add_periodic_task(60.0, agent_outages_task.s())
    sender.add_periodic_task(60.0 * 30, core_maintenance_tasks.s())
示例#2
0
def setup_periodic_tasks(sender, **kwargs):

    from agents.tasks import agent_outages_task

    sender.add_periodic_task(60.0, agent_outages_task.s())