You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "NBardelot (via GitHub)" <gi...@apache.org> on 2024/07/08 14:36:22 UTC
[I] Bad map_index in the log view of a mapped task [airflow]
NBardelot opened a new issue, #40655:
URL: https://github.com/apache/airflow/issues/40655
### Apache Airflow version
2.9.2
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
The URL built by the view has a "map_index" parameter value of -1, while the real value is 0+.

The `redirect_to_external_log` function of `airflow/www/views.py` thus does not find the task instance and outputs an error in the Airflow UI: "Task [some task] does not exist".
Changing the map_index manually in the URL to the good value makes the link work properly.
### What you think should happen instead?
The URL computed by the view should be with the right map_index.
### How to reproduce
Have an external logging mechanism in place (we have ElasticSearch), and create mapped tasks. See that the log URL of those mapped tasks are wrong when those are instanciated.
### Operating System
Kubernetes
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bad map_index in the log view of a mapped task [airflow]
Posted by "atomic77 (via GitHub)" <gi...@apache.org>.
atomic77 commented on issue #40655:
URL: https://github.com/apache/airflow/issues/40655#issuecomment-2257029405
I was able to reproduce this locally for `example_dynamic_task_mapping` against v2.9.2; if no one else has spoken for this issue I would like to give it a try.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bad map_index in the log view of a mapped task [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #40655:
URL: https://github.com/apache/airflow/issues/40655#issuecomment-2257442730
Feel free.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Bad map_index in the log view of a mapped task [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed issue #40655: Bad map_index in the log view of a mapped task
URL: https://github.com/apache/airflow/issues/40655
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org