Skip to content

lelkaklel/airflow-xcom-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Airflow S3 XCom Backend

Custom XCom backend implementation for Airflow, with data serialization to S3. ( Fork of original project https://github.com/Pilotcore/airflow-xcom-s3 )

About

Servers as a simple custom implementation of XCom backend for Airflow. It's backward compatible, but if you return Pandas DataFrame from the task, it will be serialized and stored in S3. Only the S3 path is sent afterwards. The receiving task will retrieve deserialized object.

Installation

  1. Copy the xcom_s3_backend.py to somewhere on PYTHONPATH in your Airflow image.
  2. Configure environment variable AIRFLOW__CORE__XCOM_BACKEND to xcom_s3_backend.S3XComBackend.
  3. Configure environment variable S3_XCOM_BUCKET_NAME to the name of your S3 bucket.
  4. Test the backend by returning Pandas DataFrame from your task.

About

Custom XCom backend implementation for Airflow, with data serialization to S3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%