1 parent
83e2405151
commit
5be2ca0deb
1 file changed
+13
@@ -11,6 +11,12 @@ import {
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
|
||||
export enum RetryPolicy {
|
||||
LINEAR = 'linear',
|
||||
EXPONENTIAL = 'exponential',
|
||||
CONSTANT = 'constant',
|
||||
}
|
||||
|
||||
export class RetriesConfiguration {
|
||||
@ApiProperty({
|
||||
example: 2,
|
||||
@@ -25,6 +31,13 @@ export class RetriesConfiguration {
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
attempts?: number;
|
||||
|
||||
@ApiProperty({
|
||||
example: RetryPolicy.LINEAR,
|
||||
})
|
||||
@IsOptional()
|
||||
@IsEnum(RetryPolicy)
|
||||
policy?: RetryPolicy;
|
||||
}
|
||||
|
||||
export class CustomHeader {
|
||||
|
||||
Reference in new issue
Block a user