add tests: - ensure task archiving is as atomic as it can be: - test archiving during processing - test archiving during submission - test archiving during archiving (archiving of 2 intersecting groups, must not have race conditions) - ensure invocations working during archiving cannot spawn active tasks before interrupted.
add tests: