class_docstr: Python TaskScheduler object.
  
  This is the simplest object that supports msg_id based
  DAG dependencies. *Only* task msg_ids are checked, not
  msg_ids of jobs submitted via the MUX queue.
class_docstr_tok: ["Python","TaskScheduler","object",".","This","is","the","simplest","object","that","supports","msg_id","based","DAG","dependencies",".","*","Only","*","task","msg_ids","are","checked",",","not","msg_ids","of","jobs","submitted","via","the","MUX","queue","."]
docstr: callback for a job's timeout.
  
  The job may or may not have been run at this point.
docstr_tok: ["callback","for","a","job","'s","timeout",".","The","job","may","or","may","not","have","been","run","at","this","point","."]
code: def job_timeout(self, job, timeout_id):
      """callback for a job's timeout.
  
      The job may or may not have been run at this point.
      """
      if job.timeout_id != timeout_id:
          # not the most recent call
          return
      now = time.time()
      if job.timeout >= (now + 1):
          self.log.warning(
              "task %s timeout fired prematurely: %s > %s",
              job.msg_id,
              job.timeout,
              now,
          )
      if job.msg_id in self.queue_map:
          # still waiting, but ran out of time
          self.log.info("task %r timed out", job.msg_id)
          self.fail_unreachable(job.msg_id, error.TaskTimeout)
  
imports: import time
  from collections import deque
  from random import randint, random
  from types import FunctionType
  import zmq
  from traitlets import Dict, Enum, Instance, Integer, List, observe
  from ipyparallel import Dependency, error, util
  from ipyparallel.controller.scheduler import Scheduler
label_desc: Use image node_id 11 for calling the TaskScheduler obj's underlying member method code with example usage: obj.job_timeout(job, timeout_id) without return types