fix: add get_root_job_id typescript-client

This commit is contained in:
Ruben Fiszel
2024-02-06 00:42:37 +01:00
parent 73420a1008
commit 9877c5fd9d
+3
View File
@@ -104,6 +104,9 @@ export async function getRootJobId(jobId?: string): Promise<string> {
!clientSet && setClient();
const workspace = getWorkspace();
jobId = jobId ?? getEnv("WM_JOB_ID");
if (jobId === undefined) {
throw Error("Job ID not set");
}
return await JobService.getRootJobId({ workspace, id: jobId });
}