Clear the tasks queue when its items become stale.