parameters: (self)
docstring: Make sure there is a current task for this service.
docstring_summary: Make sure there is a current task for this service.
docstring_tokens: Make sure there is a current task for this service .
function: def ensure_current_task(self):
          """
          Make sure there is a current task for this service.
          """
  
          if self.current_task is None:
              raise Exception("No current task")
function_tokens: def ensure_current_task ( self ) : if self . current_task is None : raise Exception ( "No current task" )