I would run updatelayers from the bootstrap task as we need to run this once all the layers are loaded