Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6836

DebugExecutor failing to change task state.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.10.9
    • Fix Version/s: 1.10.10
    • Component/s: executors
    • Labels:
    • Flags:
      Patch

      Description

      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. 

        Attachments

          Activity

            People

            • Assignee:
              SamWheating Sam Wheating
              Reporter:
              SamWheating Sam Wheating
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified