Skip to content

Commit

Permalink
More verbose druid metadata refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 12, 2016
1 parent ba28fbb commit 2c43968
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions panoramix/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,9 @@ def sync_to_db(cls, name, cluster):
if not datasource:
datasource = cls(datasource_name=name)
session.add(datasource)
flash("Adding new datasource [{}]".format(name), "success")
else:
flash("Refreshing datasource [{}]".format(name), "info")
datasource.cluster = cluster

cols = datasource.latest_metadata()
Expand Down
2 changes: 1 addition & 1 deletion panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ def refresh_datasources(self):
except Exception as e:
flash(
"Error while processing cluster '{}'".format(cluster),
"alert")
"danger")
return redirect('/druidclustermodelview/list/')
cluster.metadata_last_refreshed = datetime.now()
flash(
Expand Down

0 comments on commit 2c43968

Please sign in to comment.