Periodically perform tasks based on worker-task model