Skip to content

Add Airflow 3.0+ Task SDK support to AWS Batch Executor #52121

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 4 commits into from
Jun 25, 2025

Conversation

isaiahiruoha
Copy link
Contributor


Added Task SDK support for AWS BatchExecutor to enable compatibility with Airflow 3.0+.

The AWS BatchExecutor lacked support for handling Task SDK workloads, which has already been supported in the AWS ECSExecutor, changes were made to add this functionality. This meant the executor couldn't properly function with the latest Airflow architecture.

Changes:

  • Implemented handling for ExecuteTask workloads in queue_workload method
  • Added _process_workloads method to properly process Task SDK workloads
  • Modified execute_async to handle cases where a workload object is passed instead of a direct command
  • Added serialization logic to convert workloads to JSON for execution in AWS Batch containers
  • Added new test case to verify Task SDK integration works correctly

Testing:

  • Added unit test to verify proper handling of Task SDK workloads
  • Successfully locally ran system tests with the updated executor

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Jun 23, 2025
@uranusjr
Copy link
Member

Need to fix CI, otherwise lgtm.

@isaiahiruoha isaiahiruoha force-pushed the iiruoha/batch-testing-fixes branch from dd4e67e to c700272 Compare June 24, 2025 16:53
@isaiahiruoha isaiahiruoha force-pushed the iiruoha/batch-testing-fixes branch from c700272 to da37172 Compare June 24, 2025 20:02
@o-nikolas o-nikolas merged commit 2d6d3d8 into apache:main Jun 25, 2025
134 of 135 checks passed
@o-nikolas o-nikolas deleted the iiruoha/batch-testing-fixes branch June 25, 2025 00:06
Copy link

boring-cyborg bot commented Jun 25, 2025

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants