parameters: (self, phase, time_in_phase)
docstring: Prevent shutdown from happening while an activity queue is
            processing a batch.
docstring_summary: Prevent shutdown from happening while an activity queue is
            processing a batch.
docstring_tokens: Prevent shutdown from happening while an activity queue is processing a batch .
function: def process_shutdown(self, phase, time_in_phase):
          """
            Prevent shutdown from happening while an activity queue is
            processing a batch.
          """
          global has_processed_shutdown
          if phase == 3 and not has_processed_shutdown:
            has_processed_shutdown = True
            LOG('CMFActivity', INFO, "Shutdown: Waiting for activities to finish.")
            is_running_lock.acquire()
            LOG('CMFActivity', INFO, "Shutdown: Activities finished.")
function_tokens: def process_shutdown ( self , phase , time_in_phase ) : global has_processed_shutdown if phase == 3 and not has_processed_shutdown : has_processed_shutdown = True LOG ( 'CMFActivity' , INFO , "Shutdown: Waiting for activities to finish." ) is_running_lock . acquire ( ) LOG ( 'CMFActivity' , INFO , "Shutdown: Activities finished." )