def clean_global_runtime_state(reset_runtracker=True, reset_subsystem=False):
 if reset_runtracker:
  RunTracker.global_instance().reset(reset_options=False)
 if reset_subsystem:
  Subsystem.reset()
 IntermediateTargetFactoryBase.reset()
 Goal.clear()
 OptionsInitializer.reset()

def clean_global_runtime_state ( reset_runtracker = True , reset_subsystem = False ) : if reset_runtracker : RunTracker . global_instance ( ) . reset ( reset_options = False ) if reset_subsystem : Subsystem . reset ( ) IntermediateTargetFactoryBase . reset ( ) Goal . clear ( ) OptionsInitializer . reset ( )
resets the global runtime state of a pants runtime for cleaner forking .