Skip to content

Commit

Permalink
Preventing plugins_manager from loading the same plugin twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 28, 2015
1 parent 6b8d2f0 commit 3f38dec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/plugins_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def validate(cls):
issubclass(obj, AirflowPlugin) and
obj is not AirflowPlugin):
obj.validate()
plugins.append(obj)
if obj not in plugins:
plugins.append(obj)

except Exception as e:
logging.exception(e)
Expand Down

0 comments on commit 3f38dec

Please sign in to comment.