class_docstr: Runs jobs locally as a subprocess.
  
  Args:
      submit_options (str): options appended before the command.
      resources (list[str]): list of resources that will be passed as
          SHERPA_RESOURCE environment variable. If no resource is 
          available '' will be passed.
class_docstr_tok: ["Runs","jobs","locally","as","a","subprocess",".","Args",":","submit_options","(","str",")",":","options","appended","before","the","command",".","resources","(","list","[","str","]",")",":","list","of","resources","that","will","be","passed","as","SHERPA_RESOURCE","environment","variable",".","If","no","resource","is","available","``","will","be","passed","."]
code: def __init__(self, submit_options="", output_dir="", resources=None):
      self.output_dir = output_dir
      self.jobs = {}
      self.resources = resources
      self.resource_by_job = {}
      self.output_files = {}
      self.submit_options = submit_options
      self.decode_status = {
          0: _JobStatus.finished,
          -15: _JobStatus.killed,
      }
      self.output_dir = output_dir
  
imports: import subprocess
  import re
  import sys
  import os
  import logging
label_desc: Use image node_id 1 to create a new LocalScheduler object from inherited base classes: Scheduler with example: obj = LocalScheduler(submit_options, output_dir, resources)