-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(stepfunctions-tasks): confusion between multiple ways to run a Lambda #6796
Conversation
… stepfunctions tasks BREAKING CHANGE: `invokeFunction` is no longer available step functions task. use `runLambdaTask` instead as it provides the same functionality
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking change statement - Use upper camel case for InvokeFunction
and RunLambdaTask
I think I also generally disagree with removing the class. There will be a lot of people we will be breaking, which we need to think of. Let's |
After a chat with @rix0rrr and some further though, he has convinced me that this is probably a more customer friendly way to changing this. |
Is the handling of Lambda service exceptions the same when using the |
good question, I'll follow up on these today |
sure, this is where I started out with this change before our decision to remove it. I also think it's more friendly to deprecate it and encourage the preferred flow to allow users the option of using it. I like the suggestion to add some wording around future development and maintenance. Will make these changes. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
good question, investigating! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Looked into this a bit further
I also reached out to a member of the Step Functions team who verified that they should be the same |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Great! Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
It would be useful to customers if we can configure the retry policy and they will get this for free (with options to adjust).
This, however, is quite hard to implement in our current implementation. One more case to do this - #6715. If we changed the pattern to what is described here, retry policy for each type of task can be configured within it.
good point, I'll take a look into this next |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Commit Message
fix(stepfunctions-tasks): confusion between multiple ways to run a Lambda
The
InvokeFunction
Step Functions task is being marked as deprecated. It represents the legacy way to represent Lambda functions in Step FunctionsThe
RunLambda
task represents the recommended way to invoke Lambdas in Step Functions.see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-lambda.html
Examples in the README have been updated to use
RunLambdaTask
Closes #4801
Commit End
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license