Push new index and task engine when starting reanalysis, pop task engine and index when stopping.