@classmethod
def update(cls, status_dir):
    """Update all job statuses and dump to json.

        Parameters
        ----------
        status_dir : str
            Directory containing json status file.
        """
    obj = cls(status_dir)
    for module in obj.data.keys():
        for job_name in obj.data[module].keys():
            if job_name != 'pipeline_index':
                obj._update_job_status(module, job_name)
    obj._check_all_job_files(status_dir)
    obj._dump()
