

def _setup_job_for_job_id(self, job_id, tool_id, tool_version):
    self._setup_job_directory(job_id)
    tool_id = (str(tool_id) if tool_id else '')
    tool_version = (str(tool_version) if tool_version else '')
    authorization = self._get_authorization(job_id, tool_id)
    authorization.authorize_setup()
    self._write_tool_info(job_id, tool_id, tool_version)
    return job_id

dataset/ETHPy150Open galaxyproject/pulsar/pulsar/managers/base/directory.py DirectoryBaseManager._setup_job_for_job_id/original