def get_job_status(job):
    """Returns the status of the job(celery.result.ResultSet) as a percentage
    of completed tasks
    """
    total = len(job.results)
    return (float(job.completed_count()) / total) * 100