Skip to content

Commit

Permalink
empty report should have PoolEmpty: true value to prevent aggregator …
Browse files Browse the repository at this point in the history
…from re-running
  • Loading branch information
dannyvankooten committed Dec 24, 2018
1 parent 23793bd commit f9ae32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (agg *Aggregator) Run() Report {
pageviews, err := agg.database.GetProcessablePageviews(limit)
emptyReport := Report{
Processed: 0,
PoolEmpty: true,
}
if err != nil && err != datastore.ErrNoResults {
log.Error(err)
Expand Down

0 comments on commit f9ae32f

Please sign in to comment.