Skip to content

Commit d9ab279

Browse files
committed
resolved job prefix and job params
1 parent a6a9223 commit d9ab279

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/services/synthesis_job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _create_and_run_job(
5757

5858
display_name = params.get('display_name', '')
5959
job_name = f"{display_name}_{random_id}" if display_name else f"{job_prefix}_{random_id}"
60-
60+
params['job_name'] = job_name
6161
file_name = f"{job_prefix}_args_{random_id}.json"
6262

6363
# Write parameters to file
@@ -197,11 +197,11 @@ def export_job(self, request: Any, cpu: int = 2, memory: int = 4) -> Dict[str, s
197197

198198
job_name, job_run, file_name = self._create_and_run_job(
199199
"run_export_job.py",
200-
"hf",
200+
f"hf_{request.hf_config.hf_repo_name}",
201201
params,
202202
cpu=cpu,
203-
memory=memory,
204-
job_prefix=f"hf_{request.hf_config.hf_repo_name}"
203+
memory=memory
204+
205205
)
206206

207207
repo_id = f"{request.hf_config.hf_username}/{request.hf_config.hf_repo_name}"

0 commit comments

Comments
 (0)