mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-06 16:02:19 +00:00
fix: add get_root_job_id typescript-client
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user