def job_get_idx_by_tag(tag):
 job = job_get_by_tag(tag)
 if (job is None):
  return None
 return job.job_idx

def job_get_idx_by_tag ( tag ) : job = job_get_by_tag ( tag ) if ( job is None ) : return None return job . job_idx
return the job id based on the job tag .