-
Notifications
You must be signed in to change notification settings - Fork 13
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
APIGOV-28410 usage reports on schedule #826
Conversation
@@ -233,8 +235,11 @@ func (c *usagePublisher) Ready() bool { | |||
|
|||
// Execute - process the offline report generation | |||
func (c *usagePublisher) Execute() error { | |||
if c.offline { | |||
return c.report.saveReport() | |||
if c.report.shouldPublish(c.schedule) { |
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.
Should we move down this check to limit only sendReport and not to saveReport?
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.
I think it could make sense how it is, as then offline reports will not be updated any extra either. Thoughts?
No description provided.