Skip to content

Commit

Permalink
Merge pull request #2729 from PrefectHQ/dylan/cloud-57-display-job-co…
Browse files Browse the repository at this point in the history
…nfig-on-flow-run-in-the-ui-for-push-pools-in

Enhancement: add getFlowRunJobConfig method to WorkspaceFlowRunsApi
  • Loading branch information
dylanbhughes authored Sep 12, 2024
2 parents b616da1 + f816779 commit d733c56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/WorkspaceFlowRunsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,8 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi {
URL.revokeObjectURL(url)
}

public async getFlowRunJobConfig(flowRunId: string): Promise<Record<string, unknown>> {
const { data } = await this.get<Record<string, unknown>>(`${flowRunId}/job/config`)
return data
}
}

0 comments on commit d733c56

Please sign in to comment.