You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/08 19:16:50 UTC

[GitHub] [airflow] mik-laj opened a new issue #15742: Save pod name in xcom for KubernetesPodOperator.

mik-laj opened a new issue #15742:
URL: https://github.com/apache/airflow/issues/15742


   Hello.
   
   Kubernetes generates unique pod. 
   https://github.com/apache/airflow/blob/736a62f824d9062b52983633528e58c445d8cc56/airflow/kubernetes/pod_generator.py#L434-L458
   It would be great if the pod name was available in Airflow after completing the task, so that, for example, we could use it to add [extra links](http://airflow.apache.org/docs/apache-airflow/stable/howto/define_extra_link.html) or use it as an argument in downstream tasks. To do this, we should save this name in XCOM table.
   
   The operator for BigQuery works in a similar way.
   https://github.com/apache/airflow/blob/736a62f824d9062b52983633528e58c445d8cc56/airflow/providers/google/cloud/operators/bigquery.py#L730
   Thanks to this, we have links to the BigQuery console.
   https://github.com/apache/airflow/blob/736a62f824d9062b52983633528e58c445d8cc56/airflow/providers/google/cloud/operators/bigquery.py#L600-L605
   https://github.com/apache/airflow/blob/736a62f824d9062b52983633528e58c445d8cc56/airflow/providers/google/cloud/operators/bigquery.py#L57-L86
   
   Best regards,
   Kamil BreguĊ‚a
   
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj closed issue #15742: Save pod name in xcom for KubernetesPodOperator.

Posted by GitBox <gi...@apache.org>.
mik-laj closed issue #15742:
URL: https://github.com/apache/airflow/issues/15742


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mik-laj commented on issue #15742: Save pod name in xcom for KubernetesPodOperator.

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #15742:
URL: https://github.com/apache/airflow/issues/15742#issuecomment-836462155


   @Junnplus  Assigned.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] Junnplus commented on issue #15742: Save pod name in xcom for KubernetesPodOperator.

Posted by GitBox <gi...@apache.org>.
Junnplus commented on issue #15742:
URL: https://github.com/apache/airflow/issues/15742#issuecomment-836375162


   hi @mik-laj , Could you please assign this to me?


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org