GitHub user Mahesh-01010011 added a comment to the discussion: Error on Moving 
from Sequential to LocalExecutor

@tony-brookes, were you able to figure out the code needed based on what pbjc 
said? It was vague to me. It would have been more useful if he had shared the 
code snippet that worked for him, but as a beggar, I can't be chooser.

Based on his other comment about `wraps`, I opened the 
`/path/to/venv-3.11-airflow-2.10/lib/python3.11/site-packages/airflow/traces/tracer.py`
 file and added the `@functools.wraps` decorator inside `span` function like 
this:
```python
def span(func):
    """Decorate a function with span."""

    import functools
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        ...
```

It's not an elegant solution, but it works for me. I'm not sure if doing 
another `pip install` will override this, but that's ok for me. My Mac is just 
a dev environment for me. I'll add these lines again to get it to work.

GitHub link: 
https://github.com/apache/airflow/discussions/44243#discussioncomment-12931741

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

Reply via email to