```python import asyncio async def schd_cleaner(seconds, interval): while True: await asyncio.sleep(interval) # do something if __name__ == '__main__': ioloop = asyncio.get_event_loop() ioloop.create_task(schd_cleaner(7*86400, 600)) ioloop.run_forever() pass ```