Don't use repeat for indexing tasks

This commit is contained in:
tcely 2025-06-15 13:40:57 -04:00 committed by GitHub
parent a5799912c9
commit 4853123442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ def source_pre_save(sender, instance, **kwargs):
verbose_name = _('Index media from source "{}"')
index_source_task(
str(instance.pk),
repeat=instance.index_schedule,
repeat=0,
schedule=instance.task_run_at_dt,
verbose_name=verbose_name.format(instance.name),
)
@ -118,7 +118,7 @@ def source_post_save(sender, instance, created, **kwargs):
verbose_name = _('Index media from source "{}"')
index_source_task(
str(instance.pk),
repeat=instance.index_schedule,
repeat=0,
schedule=600,
verbose_name=verbose_name.format(instance.name),
)