Skip to content

Commit

Permalink
Fix: crawl termination
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed May 10, 2024
1 parent 30e16b5 commit f4edfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/crawl/finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (crawl *Crawl) catchFinish() {

for {
time.Sleep(time.Second * 5)
if crawl.ActiveWorkers.Value() == 0 && crawl.Frontier.QueueCount.Value() == 0 && !crawl.Finished.Get() && (crawl.CrawledSeeds.Value()+crawl.CrawledAssets.Value() > 0) {
if !crawl.UseHQ && crawl.ActiveWorkers.Value() == 0 && crawl.Frontier.QueueCount.Value() == 0 && !crawl.Finished.Get() && (crawl.CrawledSeeds.Value()+crawl.CrawledAssets.Value() > 0) {
logrus.Warning("No additional URL to archive, finishing")
crawl.finish()
}
Expand Down

0 comments on commit f4edfc8

Please sign in to comment.