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()
示例#2
0
 def test_delete_bot_logs(self):
     """Process segment 0."""
     task = DeleteBotLogsTask()
     assert task.run() >= 0
示例#3
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()