GitHub user r11234 edited a discussion: Is there a way to add 
operator_extra_links to `@task` ?

I want to add custom extra link to my task, my setup is something like

```python
class CustomLink(BaseOperatorLink):
   name = "custom_link"
  def get_link(self, operator, *, ti_key):
      ...

@task(task_id = "a_task", operator_extra_links=(CustomLink(), ))
def do_something(**kwargs):
    ...
```

But this doesn't work, I want to know if there is a way to add 
operator_extra_links using `@task` decorators ? 

GitHub link: https://github.com/apache/airflow/discussions/43814

----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscr...@airflow.apache.org

Reply via email to