class_docstr: This controls a job:
  - instantiate each of the tasks
  - sends timeout signal
  - stops all tasks if one of them finishes
  - cleans up the tasks/closes log files when deleted
class_docstr_tok: ["This","controls","a","job",":","-","instantiate","each","of","the","tasks","-","sends","timeout","signal","-","stops","all","tasks","if","one","of","them","finishes","-","cleans","up","the","tasks\/closes","log","files","when","deleted"]
code: def _forward_signal(
      self, signum: signal.Signals, *args: tp.Any
  ) -> None:
      for task in self.tasks:
          try:
              task.send_signal(
                  signum
              )  # sending kill signal to make sure everything finishes
          except Exception:
              pass
  
imports: import os
  import shlex
  import signal
  import subprocess
  import sys
  import time
  import typing
  from pathlib import Path
  from ..core import core, job_environment, logger, utils
  from ..core.core import R
label_desc: Use image node_id 2 for calling the Controller obj's underlying member method code with example usage: obj._forward_signal(signum) without return types