mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix: refresh fails if no status was previously set
This commit is contained in:
parent
a1dcf94d4d
commit
d1c62b106d
@ -131,7 +131,7 @@ def refresh_queries():
|
||||
'last_refresh_at': now
|
||||
})
|
||||
|
||||
statsd_client.gauge('manager.seconds_since_refresh', now - float(status['last_refresh_at']))
|
||||
statsd_client.gauge('manager.seconds_since_refresh', now - float(status.get('last_refresh_at', now)))
|
||||
|
||||
@celery.task(bind=True, track_started=True)
|
||||
def execute_query(self, query, data_source_id):
|
||||
|
Loading…
Reference in New Issue
Block a user