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())
def test_core_maintenance_tasks(self): task = core_maintenance_tasks.s().apply() self.assertEqual(task.state, "SUCCESS")