class_docstr: Encapsulates running threads and processes of a Launchpad Program.
class_docstr_tok: ["Encapsulates","running","threads","and","processes","of","a","Launchpad","Program","."]
code: def check_for_thread_worker_exception(self):
      with self._mutex:
          for label in self._active_workers:
              for worker in self._active_workers[label]:
                  if not worker.thread.is_alive():
                      worker.thread.join()
                      # This will raise the exception, if any.
                      worker.future.result()
  
imports: import atexit
  import collections
  from concurrent import futures
  import os
  import signal
  import subprocess
  import sys
  import threading
  import time
  import traceback
  from typing import Optional, Sequence, Text
  from absl import flags
  from absl import logging
  from absl.testing import absltest
  from launchpad import flags
  import psutil
  import termcolor
label_desc: Use image node_id 20 for calling the WorkerManager obj's underlying member method code with example usage: obj.check_for_thread_worker_exception() without return types