Content-Length: 426465 | pFad | http://github.com/apache/airflow/pull/50516

90 AWS Lambda Executor by o-nikolas · Pull Request #50516 · apache/airflow · GitHub
Skip to content

AWS Lambda Executor #50516

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

Merged
merged 14 commits into from
May 15, 2025
Merged

AWS Lambda Executor #50516

merged 14 commits into from
May 15, 2025

Conversation

o-nikolas
Copy link
Contributor

Overview

Introducing the new AWS Lambda Executor!

As with our previous executors this is an initial release with most functionality in place. However, there are surely future upgrades and iterations to come, so stay tuned!

This changeset includes:

  • The Lambda executor code itself
  • Tests for the executor
  • Docs for the executor

Testing

The unit tests cover 90+% line coverage (ignore the hook coverage, the results were filtered on lambda and that hook is prexisting code not delivered in this PR) and the executor was UAT tested manually in many scenarios.

Screenshot from 2025-05-12 16-51-49

Review Notes

This is a large PR, which is not entirely ideal. However, it can be difficult to release portions of a component like this and I've scoped all the code here to the minimum required for folks to begin using this executor. There are other refactorings that were left out and will be contributed at a later time to minimize the confusion.

There are clear chunks this can be reviewed in (docs, provider.yaml, tests, and core logic) to split it up.

Ultimately, (almost) all the code is scoped to the Amazon provider package and it is a net new component, so there is a very limited blast radius. Little to no existing user workflows or code should be affected.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

This changeset includes:
- The Lambda executor code itself
- Tests for the executor
- Docs for the executor
@boring-cyborg boring-cyborg bot added area:production-image Production image improvements and fixes area:providers kind:documentation provider:amazon AWS/Amazon - related issues labels May 13, 2025
@gopidesupavan
Copy link
Member

@o-nikolas LGTM, thanks for this.

The lambda function has default retries (2), how about this, do you think in this case retries required?

@o-nikolas
Copy link
Contributor Author

@o-nikolas LGTM, thanks for this.

The lambda function has default retries (2), how about this, do you think in this case retries required?

Our retries include attempts to even submit the task to lambda (network issues, access token expiration, api failures), so I think it's still worth keeping. But if others agree we should drop it, I'm not completely opposed to that!

@gopidesupavan
Copy link
Member

@o-nikolas LGTM, thanks for this.
The lambda function has default retries (2), how about this, do you think in this case retries required?

Our retries include attempts to even submit the task to lambda (network issues, access token expiration, api failures), so I think it's still worth keeping. But if others agree we should drop it, I'm not completely opposed to that!

Yeah fine even i am not opposed to it :)

@o-nikolas
Copy link
Contributor Author

@o-nikolas LGTM, thanks for this.
The lambda function has default retries (2), how about this, do you think in this case retries required?

Our retries include attempts to even submit the task to lambda (network issues, access token expiration, api failures), so I think it's still worth keeping. But if others agree we should drop it, I'm not completely opposed to that!

Yeah fine even i am not opposed to it :)

Sounds good, thanks for the review!

Passing through clientContext to the lambda function is only supported
on synchronous executions.
@o-nikolas o-nikolas merged commit 2961561 into apache:main May 15, 2025
69 checks passed
@o-nikolas o-nikolas deleted the onikolas/lambda_exec branch May 15, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:production-image Production image improvements and fixes area:providers kind:documentation provider:amazon AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50516

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy