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 2019/06/11 13:40:38 UTC

[GitHub] [airflow] pgagnon commented on issue #5399: [AIRFLOW-4756] fix gantt view error after clearing failed task

pgagnon commented on issue #5399: [AIRFLOW-4756] fix gantt view error after clearing failed task
URL: https://github.com/apache/airflow/pull/5399#issuecomment-500846150
 
 
   This has been puzzling me a bit so I did some investigation. It looks like the root cause is flask instantiating `JSONEncoder` with `sort_keys=True`.
   
   On line [1773](https://github.com/apache/airflow/pull/5399/files#diff-948e87b4f8f644b3ad8c7950958df033R1773) we have `states = {task['status']: task['status'] for task in tasks}` with `task['status']` coming from `ti.state` which is then added to `data`. Your fix is 🎉.

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


With regards,
Apache Git Services