Skip to content

Commit

Permalink
Merge pull request #29 from wri/feat/TM-1531-add-uuid-to-delayed-dto
Browse files Browse the repository at this point in the history
[TM-1531] add uuid to delayed dto
  • Loading branch information
egrojMonroy authored Dec 17, 2024
2 parents 531c13e + 88bb5b5 commit 56253c7
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions apps/job-service/src/jobs/dto/delayed-job.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ type Status = (typeof STATUSES)[number];

@JsonApiDto({ type: "delayedJobs" })
export class DelayedJobDto extends JsonApiAttributes<DelayedJobDto> {
@ApiProperty({
description: "The unique identifier for the delayed job.",
type: String
})
uuid: string;

@ApiProperty({
description:
Expand All @@ -28,26 +33,26 @@ export class DelayedJobDto extends JsonApiAttributes<DelayedJobDto> {
payload: object | null;

@ApiProperty({
description: 'If the job is in progress, this is the total content to process',
description: "If the job is in progress, this is the total content to process",
nullable: true
})
totalContent: number | null;

@ApiProperty({
description: 'If the job is in progress, this is the total content processed',
description: "If the job is in progress, this is the total content processed",
nullable: true
})
processedContent: number | null;

@ApiProperty({
description: 'If the job is in progress, this is the progress message',
description: "If the job is in progress, this is the progress message",
nullable: true
})
progressMessage: string | null
progressMessage: string | null;

@ApiProperty({
description: 'Indicates whether the jobs have been acknowledged (cleared)',
description: "Indicates whether the jobs have been acknowledged (cleared)",
nullable: true
})
isAcknowledged: boolean | null
isAcknowledged: boolean | null;
}

0 comments on commit 56253c7

Please sign in to comment.