question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for set in XCom serialization

See original GitHub issue

Description

Add support for set in Xcom serialization method. This requires support for set in nested structures.

Use case / motivation Once we switched to JSON as main serialization format the following error appeared:

TypeError: Object of type 'set' is not JSON serializable

Related Issues

Discussion started in https://github.com/apache/airflow/pull/8607#discussion_r419327697

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
kaxilcommented, Jul 2, 2021
1reaction
kaxilcommented, Sep 14, 2021

Let’s use Custom XCom backend if needed – this isn’t critical

Read more comments on GitHub >

github_iconTop Results From Across the Web

XComs — Airflow Documentation
An XCom is identified by a key (essentially its name), as well as the task_id and dag_id it came from. They can have...
Read more >
Airflow XCOM : The Ultimate Guide - Marc Lamberti
The Airflow XCom is not an easy concept, so let me illustrate why it might be ... Keep in mind that your value...
Read more >
How to solve this Problem Could not serialize the XCom value ...
so xcom doesn't support exchanging non serialized data type like dataframes (read more about Python pickle here), but if you must , you...
Read more >
Custom XCom backends | Astronomer Documentation
The final step to setting up your custom XCom backend is configuring your serialization and deserialization methods and applying them to your Airflow ......
Read more >
Customizing Xcom to enhance data sharing between tasks
Presented by Vikram Koka & Ephraim Anierobi at Airflow Summit 2021.In Apache Airflow, Xcom is the default mechanism for passing data between ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found