Chapter 4 - Recipe #7: Running a task in an executor periodically