Adding some trace logging when setting last execution time for tasks