-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Druid metadata refresh. #192
Conversation
|
|
@@ -840,8 +840,12 @@ def latest_metadata(self): | |||
return | |||
max_time = results[0]['result']['maxTime'] | |||
max_time = parse(max_time) | |||
intervals = (max_time - timedelta(seconds=1)).isoformat() + '/' | |||
intervals += (max_time + timedelta(seconds=1)).isoformat() | |||
# Query segmentMetadata for 7 days back. However, due to a bug, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mistercrunch I have to query [-7 day, -1 day] range because of a bug in 0.8.0. (see comment).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to query for 7 days? even 10 minutes is good enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Max has a point that some segment might be outside of the range. -7 is a heuristic to get at least one segment.
It's ready to be reviewed @mistercrunch @dayzzz |
LGTM ! merging. |
Could you take a look @mistercrunch, in particular
dashed/models.py
?