Skip to content

Commit

Permalink
print out for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjiang committed Aug 2, 2024
1 parent ac397a9 commit 82e3587
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ezidapp/management/commands/proc-link-checker-update.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def _sameTimeOfDayDelta(self):

def _harvest(self, model, only=None, filter=None):
lastIdentifier = ""
batch = 0
while not self.terminated():
qs = model.objects.filter(identifier__gt=lastIdentifier).order_by("identifier")
if only is not None:
Expand All @@ -139,5 +140,7 @@ def _harvest(self, model, only=None, filter=None):
break
else:
lastIdentifier = identifier
batch += 1
print(f"#### batch: {batch}, lastID: {lastIdentifier}")
yield None

0 comments on commit 82e3587

Please sign in to comment.