class_docstr: Abstract interface for a Guild plugin.
docstr: Called when a run is starting.
  
  This called immediately before the run is marked as started.
  
  `pidfile` is provided when the run is started in the background. The
  plugin should poll the pidfile for creation and deletion to infer the
  run process start and end. `run_stopped()` is not called when a pidfile
  is provided.
  
  If `pidfile` is None, the operation is run in the foreground and
  `run_stopped()` is called, provided the parent process shuts down
  cleanly.
docstr_tok: ["Called","when","a","run","is","starting",".","This","called","immediately","before","the","run","is","marked","as","started",".","`","pidfile","`","is","provided","when","the","run","is","started","in","the","background",".","The","plugin","should","poll","the","pidfile","for","creation","and","deletion","to","infer","the","run","process","start","and","end",".","`","run_stopped","(",")","`","is","not","called","when","a","pidfile","is","provided",".","If","`","pidfile","`","is","None",",","the","operation","is","run","in","the","foreground","and","`","run_stopped","(",")","`","is","called",",","provided","the","parent","process","shuts","down","cleanly","."]
code: def run_starting(self, run, op, pidfile):
      """Called when a run is starting.
  
      This called immediately before the run is marked as started.
  
      `pidfile` is provided when the run is started in the background. The
      plugin should poll the pidfile for creation and deletion to infer the
      run process start and end. `run_stopped()` is not called when a pidfile
      is provided.
  
      If `pidfile` is None, the operation is run in the foreground and
      `run_stopped()` is called, provided the parent process shuts down
      cleanly.
      """
  
imports: import logging
  from guild import __pkgdir__
  from guild import entry_point_util
label_desc: Use image node_id 9 for calling the Plugin obj's underlying member method code with example usage: obj.run_starting(run, op, pidfile) without return types