class_docstr: Execute using SGE (OGE not tested)
  
  The plugin_args input to run can be used to control the SGE execution.
  Currently supported options are:
  
  - template : template to use for batch job submission
  - qsub_args : arguments to be prepended to the job execution script in the
                qsub call
class_docstr_tok: ["Execute","using","SGE","(","OGE","not","tested",")","The","plugin_args","input","to","run","can","be","used","to","control","the","SGE","execution",".","Currently","supported","options","are",":","-","template",":","template","to","use","for","batch","job","submission","-","qsub_args",":","arguments","to","be","prepended","to","the","job","execution","script","in","the","qsub","call"]
code: def __init__(self, **kwargs):
      template = """
  #$ -V
  #$ -S /bin/sh
          """
      self._retry_timeout = 2
      self._max_tries = 2
      instant_qstat = "qstat"
      cached_qstat = "qstat"
  
      if "plugin_args" in kwargs and kwargs["plugin_args"]:
          if "retry_timeout" in kwargs["plugin_args"]:
              self._retry_timeout = kwargs["plugin_args"][
                  "retry_timeout"
              ]
          if "max_tries" in kwargs["plugin_args"]:
              self._max_tries = kwargs["plugin_args"]["max_tries"]
          if "qstatProgramPath" in kwargs["plugin_args"]:
              instant_qstat = kwargs["plugin_args"]["qstatProgramPath"]
          if "qstatCachedProgramPath" in kwargs["plugin_args"]:
              cached_qstat = kwargs["plugin_args"][
                  "qstatCachedProgramPath"
              ]
      self._refQstatSubstitute = QstatSubstitute(
          instant_qstat, cached_qstat
      )
  
      super().__init__(template, **kwargs)
  
imports: import os
  import pwd
  import re
  import subprocess
  import time
  import xml.dom.minidom
  import random
  from ...None import logging
  from ...interfaces.base import CommandLine
  from .base import SGELikeBatchManagerBase, logger
label_desc: Use image node_id 1 to create a new SGEPlugin object from inherited base classes: SGELikeBatchManagerBase with example: obj = SGEPlugin()