atul-astronomer opened a new issue, #55752:
URL: https://github.com/apache/airflow/issues/55752

   ### Apache Airflow version
   
   3.0.6
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   We are seeing many small issues on AF3 UI, creating this 1 issue to log all 
those 
   
   1. Getting 422 intermittently while checking logs of mapped tasks
   
   <img width="3002" height="880" alt="Image" 
src="https://github.com/user-attachments/assets/bd0b887b-ab3b-422e-8001-7dcaf244564b";
 />
   
   ```javascript
   apiserver INFO:     45.118.158.92:0 - "GET 
/d5jivb8q/api/v2/dags/kpo_mapped/dagRuns/manual__2025-09-16T09%3A49%3A13.944070%2B00%3A00/taskInstances/cowsay_mapped/NaN
 HTTP/1.1" 422 Unprocessable Entity
   apiserver INFO:     45.118.158.92:0 - "GET 
/d5jivb8q/api/v2/dags/kpo_mapped/dagRuns/manual__2025-09-16T09%3A49%3A13.944070%2B00%3A00/taskInstances/cowsay_mapped/NaN
 HTTP/1.1" 422 Unprocessable Entity
   ``` 
   
   2. Intermittent issue sometimes tasks are not showing up on grid but after 
refresh it comes up.
   
   
https://github.com/user-attachments/assets/cd9cf10a-232a-43c5-b7c5-26273e7e9049
   
   <img width="3456" height="1554" alt="Image" 
src="https://github.com/user-attachments/assets/79ced803-c4c0-4fc1-85a9-cab91f4ed70a";
 />
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   1. Create multiple dagruns and intermittently notice tasks are not loaded on 
grid and comes up after refresh.
   2. For mapped task issue, use the below dag
   ```python
   from datetime import datetime
   from airflow.sdk import DAG
   from airflow.providers.cncf.kubernetes.operators.pod import (
       KubernetesPodOperator,
   )
   
   from airflow.configuration import conf
   
   namespace = conf.get("kubernetes_executor", "NAMESPACE")
   
   with DAG(
       dag_id="kpo_mapped",
       start_date=datetime(1970, 1, 1),
       schedule=None,
       tags=["taskmap_skip"]
       # render_template_as_native_obj=True,
   ) as dag:
   
       KubernetesPodOperator(
           task_id="cowsay_static",
           name="cowsay_statc",
           namespace=namespace,
           image="docker.io/rancher/cowsay",
           cmds=["cowsay"],
           arguments=["moo"],
           log_events_on_failure=True,
       )
   
       KubernetesPodOperator.partial(
           task_id="cowsay_mapped",
           name="cowsay_mapped",
           namespace=namespace,
           image="docker.io/rancher/cowsay",
           cmds=["cowsay"],
           log_events_on_failure=True,
       ).expand(arguments=[["mooooove"], ["cow"], ["get out the way"]])
   
   ``` 
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to