Skip to content

Commit

Permalink
chore: remove trace from getTasksByJobId
Browse files Browse the repository at this point in the history
  • Loading branch information
razbroc committed Mar 31, 2024
1 parent 1d9b705 commit 59b20f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/clients/jobManagerWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ export class JobManagerWrapper extends JobManagerClient {
this.jobDomain = config.get<string>('externalClientsConfig.clientsUrls.jobManager.jobDomain');
}

@withSpanAsyncV4
public async getTasksByJobId(jobId: string): Promise<TaskResponse[]> {
const tasks = await this.get<TaskResponse[]>(`/jobs/${jobId}/tasks`);
return tasks;
}

@withSpanAsyncV4
public async createExport(data: IWorkerExportInput): Promise<ICreateExportJobResponse> {
const expirationDate = new Date();
Expand Down Expand Up @@ -103,6 +97,11 @@ export class JobManagerWrapper extends JobManagerClient {
return createJobResponse;
}

public async getTasksByJobId(jobId: string): Promise<TaskResponse[]> {
const tasks = await this.get<TaskResponse[]>(`/jobs/${jobId}/tasks`);
return tasks;
}

/**
* @deprecated The method should not be used
*/
Expand Down

0 comments on commit 59b20f9

Please sign in to comment.