Delay additional indexing tasks while database tasks run
This commit is contained in:
1 parent
587461978d
commit
2dae3b087e
1 file changed
+1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user