Skip to content

Commit

Permalink
Merge pull request #2061 from laws-africa/ingestor-activate
Browse files Browse the repository at this point in the history
activate ingestors
  • Loading branch information
actlikewill authored Sep 25, 2024
2 parents a2e0c43 + cf2e238 commit cdbf6d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions peachjam/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ def ready(self):
if not settings.DEBUG:
from background_task.models import Task

# from peachjam.models import Ingestor
from peachjam.models import Ingestor
from peachjam.tasks import rank_works

# always queue up ingestor tasks on application start
# for ingestor in Ingestor.objects.all():
# ingestor.queue_task()
for ingestor in Ingestor.objects.all():
ingestor.queue_task()

# run on sunday at 3am and then weekly after that
run_at = timezone.now()
run_at = (
Expand Down

0 comments on commit cdbf6d9

Please sign in to comment.