Skip to content

Commit

Permalink
feat: putFunctionAsyncConfig statefulInvocation
Browse files Browse the repository at this point in the history
  • Loading branch information
wss-git committed Jun 1, 2021
1 parent b63d93c commit 76cdf23
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/function-async-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function makeDestination(serviceName, functionName, asyncConfiguration, qu
const asyncConfig = {
maxAsyncRetryAttempts: asyncConfiguration.MaxAsyncRetryAttempts,
maxAsyncEventAgeInSeconds: asyncConfiguration.MaxAsyncEventAgeInSeconds,
statefulInvocation: asyncConfiguration.StatefulInvocation,
destinationConfig
};

Expand All @@ -33,6 +34,7 @@ async function makeDestination(serviceName, functionName, asyncConfiguration, qu
const asyncConfigCache = {
destinationConfig: data.destinationConfig,
maxAsyncEventAgeInSeconds: data.maxAsyncEventAgeInSeconds,
statefulInvocation: data.statefulInvocation,
maxAsyncRetryAttempts: data.maxAsyncRetryAttempts
};
if (_.isEqual(asyncConfig, asyncConfigCache)) {
Expand Down
6 changes: 6 additions & 0 deletions src/lib/language-service/schema/rosSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ export const rosSchema = {
}
}
},
"StatefulInvocation": {
"type": "boolean"
},
"MaxAsyncEventAgeInSeconds": {
"type": "integer"
},
Expand Down Expand Up @@ -349,6 +352,9 @@ export const rosSchema = {
}
}
},
"StatefulInvocation": {
"type": "boolean"
},
"MaxAsyncEventAgeInSeconds": {
"type": "integer"
},
Expand Down
6 changes: 6 additions & 0 deletions src/lib/validate/schema/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const functionSchema = {
'MaxAsyncEventAgeInSeconds': {
'type': 'integer'
},
'StatefulInvocation': {
'type': 'boolean'
},
'MaxAsyncRetryAttempts': {
'type': 'integer'
}
Expand Down Expand Up @@ -182,6 +185,9 @@ const functionSchema = {
'MaxAsyncEventAgeInSeconds': {
'type': 'integer'
},
'StatefulInvocation': {
'type': 'boolean'
},
'MaxAsyncRetryAttempts': {
'type': 'integer'
}
Expand Down

0 comments on commit 76cdf23

Please sign in to comment.