code: def process_new_job_event(self, event_data):
          '''
          Creates a new job with properties from the event data
          like jid, function, args, timestamp.
  
          Also sets the initial state to started.
  
          Minions that are participating in this job are also noted.
  
          '''
          job = None
          tag = event_data['tag']
          event_info = event_data['data']
          minions = {}
          for mid in event_info['minions']:
              minions[mid] = {'success': False}
  
          job = {
              'jid': event_info['jid'],
              'start_time': event_info['_stamp'],
              'minions': minions,  # is a dictionary keyed by mids
              'fun': event_info['fun'],
              'tgt': event_info['tgt'],
              'tgt_type': event_info['tgt_type'],
              'state': 'running',
          }
          self.jobs[event_info['jid']] = job
          self.publish('jobs', self.jobsf process_new_job_event(self, event_data):
          '''
          Creates a new job with properties from the event data
          like jid, function, args, timestamp.
  
          Also sets the initial state to started.
  
          Minions that are participating in this job are also noted.
  
          '''
          job = None
          tag = event_data['tag']
          event_info = event_data['data']
          minions = {}
          for mid in event_info['minions']:
              minions[mid] = {'success': False}
  
          job = {
              'jid': event_info['jid'],
              'start_time': event_info['_stamp'],
              'minions': minions,  # is a dictionary keyed by mids
              'fun': event_info['fun'],
              'tgt': event_info['tgt'],
              'tgt_type': event_info['tgt_type'],
              'state': 'running',
          }
          self.jobs[event_info['jid']] = job
          self.publish('jobs', self.jobs)
docs: Creates a new job with properties from the event data
          like jid, function, args, timestamp.
  
          Also sets the initial state to started.
  
          Minions that are participating in this job are also noted.