   )
   return ret
 
-API.job._checking = (jobid) ->
+API.job._progress = (jobid) ->
   job = if typeof jobid is 'object' then jobid else job_job.get jobid
   job_result.remove job._id
   total = job.processes.length

    job_process.insert pn
  else if proc.order
    job_process.update {job: proc.job, order: proc.order+1}, {available:true}
  job_job.each 'job.processes.process:'+proc._id, (job) -> API.job.progress(job,300000) if job._id isnt proc._id and not job_processing.get(job._id)?
  if proc.callback
    cb = API
    cb = cb[c] for c in proc.callback.replace('API.','').split('.')

  job = if typeof jobid is 'object' then jobid else job_job.get jobid
  if job.new or job.done
    return {createdAt:job.createdAt, progress:(if job.done then 100 else 0), name:job.name, email:job.email, _id:job._id, new:job.new}
  else if job_processing.get job._id
    if checked = job_result.get job._id
      return checked.result['API.job._progress']
    else
      return {createdAt:job.createdAt, progress:0, name:job.name, email:job.email, _id:job._id, new:false}
  else
    API.log msg: 'Checking job progress of ' + job._id, level: 'debug'
    return API.job.process({_id: job._id, group: 'PROGRESS', limit: limit ? 2000, function: 'API.job._progress', args: job._id}).result['API.job._progress']

API.job.rerun = (jobid,uid) ->
  job = job_job.get jobid
