Delay additional indexing tasks while database tasks run

This commit is contained in:
tcely 2025-06-05 04:15:45 -04:00 committed by GitHub
parent 587461978d
commit 2dae3b087e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -399,6 +399,7 @@ def index_source_task(source_id):
source.last_crawl = timezone.now()
save_model(source)
wait_for_database_queue(
priority=19, # the indexing task uses 20
verbose_name=_('Waiting for database tasks to complete'),
)
wait_for_database_queue(