GitHub user potiuk added a comment to the discussion: XCom Limitations and 
Immutable Operators in Airflow 3.x

You can extend HttpOperator:

```python
class MyEnrichedHttpOperator(HttpOperator):

    def execute(context):
          enrich_context_and_store_stuff_in_objedt(self).
          super.execut(context) # your example is not clear ho wthe task/ids 
are going to be used in HttpOperator so likely you need to modify a bit more. 
Not sure if setting stuff in self is enought - but it should be.
```

and you can use such operator. The method to enrich things might be even shared 
between different operators of yours.

GitHub link: 
https://github.com/apache/airflow/discussions/54772#discussioncomment-14179136

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to