Fix archive tasks restart (issue #3623)