Always just call sync_callback
@@ -1087,14 +1087,6 @@ class UpdateDocsTaskStep(SyncRepositoryMixin, CachedEnvironmentMixin):
delete_unsynced_media = True
# Broadcast finalization steps to web application instances
- if not settings.MULTIPLE_APP_SERVERS:
- sync_callback.delay(
- version_pk=self.version.pk,
- commit=self.build['commit'],
- build=self.build['id'],
- )
-
- else:
broadcast(
type='app',
task=sync_files,
@@ -1112,11 +1104,13 @@ class UpdateDocsTaskStep(SyncRepositoryMixin, CachedEnvironmentMixin):
epub=epub,
delete_unsynced_media=delete_unsynced_media,
),
- callback=sync_callback.s(
+ )
+
+ # Mostly used for search indexing
+ sync_callback.delay(
version_pk=self.version.pk,
commit=self.build['commit'],
build=self.build['id'],
- ),
)
def setup_python_environment(self):
