Skip to content

Commit

Permalink
Only pickle_info for non subdags
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jan 6, 2016
1 parent 0f5ff78 commit 95fa58f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,8 @@ def pickle_info(self):
dag_id = request.args.get('dag_id')
dags = [dagbag.dags.get(dag_id)] if dag_id else dagbag.dags.values()
for dag in dags:
d[dag.dag_id] = dag.pickle_info()
if not dag.is_subdag:
d[dag.dag_id] = dag.pickle_info()
return wwwutils.json_response(d)

@expose('/login', methods=['GET', 'POST'])
Expand Down

0 comments on commit 95fa58f

Please sign in to comment.