Skip to content

Commit 9b560c4

Browse files
authored
feat(serverless_jobs): add resources to job run (#1060)
1 parent 515ae2b commit 9b560c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/clients/src/api/jobs/v1alpha1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ export const unmarshalJobRun = (data: unknown): JobRun => {
4848
}
4949

5050
return {
51+
cpuLimit: data.cpu_limit,
5152
createdAt: unmarshalDate(data.created_at),
5253
errorMessage: data.error_message,
5354
exitCode: data.exit_code,
5455
id: data.id,
5556
jobDefinitionId: data.job_definition_id,
57+
memoryLimit: data.memory_limit,
5658
region: data.region,
5759
runDuration: data.run_duration,
5860
state: data.state,

packages/clients/src/api/jobs/v1alpha1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export interface JobRun {
4747
exitCode?: number
4848
runDuration?: string
4949
errorMessage: string
50+
cpuLimit: number
51+
memoryLimit: number
5052
/**
5153
* Region to target. If none is passed will use default region from the
5254
* config.

0 commit comments

Comments
 (0)