ASF GitHub Bot commented on AIRFLOW-5207:

marcusianlevine commented on pull request #5811: [AIRFLOW-5207] Fix Mark 
Success and Failure views
URL: https://github.com/apache/airflow/pull/5811
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:

> Mark Success and Mark Failed views error out due to DAG reassignment
> --------------------------------------------------------------------
>                 Key: AIRFLOW-5207
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5207
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ui
>    Affects Versions: 1.10.4
>            Reporter: Marcus Levine
>            Assignee: Marcus Levine
>            Priority: Major
>             Fix For: 1.10.5
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> When trying to clear a task after upgrading to 1.10.4, I get the following 
> traceback:
> {code:java}
> File "/usr/local/lib/python3.7/site-packages/airflow/www/views.py", line 
> 1451, in failed future, past, State.FAILED) File 
> "/usr/local/lib/python3.7/site-packages/airflow/www/views.py", line 1396, in 
> _mark_task_instance_state task.dag = dag File 
> "/usr/local/lib/python3.7/site-packages/airflow/models/baseoperator.py", line 
> 509, in dag "The DAG assigned to {} can not be changed.".format(self)) 
> airflow.exceptions.AirflowException: The DAG assigned to 
> <Task(SubDagOperator): my-dag> can not be changed.{code}
> This should be a simple fix by either dropping the offending line, or if it 
> is required to keep things working, just set the private attribute instead:
> {code:java}
> task._dag = dag
> {code}

This message was sent by Atlassian JIRA

Reply via email to