mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Delay additional indexing tasks while database tasks run
This commit is contained in:
parent
587461978d
commit
2dae3b087e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user