class_docstr: Execute using OAR
  
  The plugin_args input to run can be used to control the OAR execution.
  Currently supported options are:
  
  - template : template to use for batch job submission
  - oarsub_args : arguments to be prepended to the job execution
                  script in the oarsub call
  - max_jobname_len: maximum length of the job name.  Default 15.
class_docstr_tok: ["Execute","using","OAR","The","plugin_args","input","to","run","can","be","used","to","control","the","OAR","execution",".","Currently","supported","options","are",":","-","template",":","template","to","use","for","batch","job","submission","-","oarsub_args",":","arguments","to","be","prepended","to","the","job","execution","script","in","the","oarsub","call","-","max_jobname_len",":","maximum","length","of","the","job","name",".","Default","15","."]
code: def __init__(self, **kwargs):
      template = """
  # oarsub -J
          """
      self._retry_timeout = 2
      self._max_tries = 2
      self._max_jobname_length = 15
      if "plugin_args" in kwargs and kwargs["plugin_args"]:
          if "oarsub_args" in kwargs["plugin_args"]:
              self._oarsub_args = kwargs["plugin_args"]["oarsub_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 "max_jobname_len" in kwargs["plugin_args"]:
              self._max_jobname_len = kwargs["plugin_args"][
                  "max_jobname_len"
              ]
      super().__init__(template, **kwargs)
  
file_path: nipype/nipype/pipeline/plugins/oar.py
imports: import os
  import stat
  from time import sleep
  import subprocess
  import simplejson
  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 OARPlugin object from inherited base classes: SGELikeBatchManagerBase with example: obj = OARPlugin()