Add major rank_method in export_taskpackages