Add a scheduled task to process events