pierrejeambrun commented on issue #47274:
URL: https://github.com/apache/airflow/issues/47274#issuecomment-2704777253

   @sunank200 I think I found a way to consistently replicate.
   
   
   <details>
     <summary>Dag Used</summary>
     
     ### Dag
     ```python
     # Licensed to the Apache Software Foundation (ASF) under one
   # or more contributor license agreements.  See the NOTICE file
   # distributed with this work for additional information
   # regarding copyright ownership.  The ASF licenses this file
   # to you under the Apache License, Version 2.0 (the
   # "License"); you may not use this file except in compliance
   # with the License.  You may obtain a copy of the License at
   #
   #   http://www.apache.org/licenses/LICENSE-2.0
   #
   # Unless required by applicable law or agreed to in writing,
   # software distributed under the License is distributed on an
   # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   # KIND, either express or implied.  See the License for the
   # specific language governing permissions and limitations
   # under the License.
   """Example DAG demonstrating the usage of the XComArgs."""
   
   from __future__ import annotations
   
   import logging
   
   import pendulum
   
   from airflow.decorators import task
   from airflow.models.dag import DAG
   
   log = logging.getLogger(__name__)
   
   
   @task
   def generate_value() -> int:
       """Empty function."""
       return 1
   
   
   @task
   def print_value(value, ts=None):
       """Empty function."""
       log.info("The knights of Ni say: %s (at %s)", value, ts)
   
   
   with DAG(
       dag_id="xcom",
       start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
       catchup=False,
       schedule=None,
       tags=["example"],
   ) as dag:
       print_value(print_value(generate_value()))
   
     ```
   </details>
   
   Start a fresh breeze setup with:
   ```
   breeze start-airflow --python 3.9 --backend postgres  --load-example-dags 
--executor CeleryExecutor --dev-mode  --db-reset
   ```
   
   Go to the UI and trigger the `xcom` dag manually while also unpausing the 
dag, this should create only 1 dag run.
   
   
![Image](https://github.com/user-attachments/assets/c9a609bf-b15a-40c5-bb0e-beba241c120f)
   
   
   Wait for the run to complete and then try to clear any task via the UI, this 
will trigger the `clear` call and raise the error 500.
   
   
![Image](https://github.com/user-attachments/assets/23e49636-c0dd-4273-b39e-57488a43a664)


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