Pocoder opened a new issue #21425:
URL: https://github.com/apache/airflow/issues/21425


   ### Apache Airflow version
   
   2.2.3 (latest released)
   
   ### What happened
   
   I've created my own XCom Backend 'S3XComBackend' with no additional logic in 
folder include/custom_xcom_backend.py and then tried to configure my 
docker-compose file to work with it. I added `AIRFLOW__CORE__XCOM_BACKEND: 
'include.custom_xcom_backend.S3XComBackend'` to environments and `- 
./include:/opt/airflow/include` to volumes. Then I ran docker-compose up and 
faced ERROR:
   
   > airflow_postgres_1 is up-to-date
   > airflow_redis_1 is up-to-date
   > Starting airflow_airflow-init_1 ... done
   > 
   > ERROR: for airflow-webserver  Container "a3c1a81acdcd" exited with code 1.
   > 
   > ERROR: for airflow-worker  Container "a3c1a81acdcd" exited with code 1.
   > 
   > ERROR: for airflow-scheduler  Container "a3c1a81acdcd" exited with code 1.
   > 
   > ERROR: for airflow-triggerer  Container "a3c1a81acdcd" exited with code 1.
   > 
   > ERROR: for flower  Container "a3c1a81acdcd" exited with code 1.
   > ERROR: Encountered errors while bringing up the project.
   
   
   ### What you expected to happen
   
   _No response_
   
   ### How to reproduce
   
   This is my xcom_backend:
   ``` python
   from typing import Any
   import pickle
   import uuid
   
   from airflow.models.xcom import BaseXCom
   from airflow.providers.amazon.aws.hooks.s3 import S3Hook
   
   
   class S3XComBackend(BaseXCom):
   
       @staticmethod
       def serialize_value(value: Any):
           return BaseXCom.serialize_value(value)
   
       @staticmethod
       def deserialize_value(result) -> Any:
           return BaseXCom.deserialize_value(result)
   ```
   
   ### Operating System
   
   mac-os
   
   ### Versions of Apache Airflow Providers
   
   ```
   apache-airflow==2.2.3
   apache-airflow-providers-amazon==2.6.0
   apache-airflow-providers-ftp==2.0.1
   apache-airflow-providers-http==2.0.2
   apache-airflow-providers-imap==2.1.0
   apache-airflow-providers-sqlite==2.0.1
   
   ```
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to