Ejemplo n.º 1
0
def run_daily_tasks():
    """Run daily tasks."""
    LOGGER.info("Running daily tasks.")

    task = DeleteBotLogsTask()
    task.run()

    task = DeleteWebsiteLogsTask()
    task.run()

    task = UpdateTaglineTask()
    task.run()

    task = UpdateTotalEditsTask()
    task.run()
Ejemplo n.º 2
0
 def test_delete_bot_logs(self):
     """Process segment 0."""
     task = DeleteBotLogsTask()
     assert task.run() >= 0