You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Sam Wheating (Jira)" <ji...@apache.org> on 2020/02/18 22:11:00 UTC

[jira] [Created] (AIRFLOW-6836) DebugExecutor failing to change task state.

Sam Wheating created AIRFLOW-6836:
-------------------------------------

             Summary: DebugExecutor failing to change task state.
                 Key: AIRFLOW-6836
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6836
             Project: Apache Airflow
          Issue Type: Bug
          Components: executors
    Affects Versions: 1.10.9
            Reporter: Sam Wheating
            Assignee: Sam Wheating
             Fix For: 1.10.10


Running a DAG locally with the DebugExecutor fails with the following error:

```
 File "/Users/samwheating/.pyenv/versions/3.7.3/lib/python3.7/site-packages/airflow/executors/debug_executor.py", line 148, in change_state
 self.running.remove(key)
AttributeError: 'dict' object has no attribute 'remove'
```

This seems to be because the change_state function is expecting a set rather than a dict for `self.running`. This should be updated to use `del self.running[key]` or `self.running.pop(key)`.

I'll submit a PR for this tomorrow. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)