Skip to content

Commit 07c84e4

Browse files
authored
Merge pull request #6823 from readthedocs/fix-proxito-search
Properly call sync_callback when there aren't any MULTIPLE_APP_SERVERS settings
2 parents 06f135c + f8a6ee1 commit 07c84e4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

readthedocs/projects/tasks.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,11 +1104,14 @@ def update_app_instances(
11041104
epub=epub,
11051105
delete_unsynced_media=delete_unsynced_media,
11061106
),
1107-
callback=sync_callback.s(
1108-
version_pk=self.version.pk,
1109-
commit=self.build['commit'],
1110-
build=self.build['id'],
1111-
),
1107+
)
1108+
1109+
# All the JSON files are uploaded to storage prior to syncing
1110+
# so we should be fine to index the files without waiting
1111+
sync_callback.delay(
1112+
version_pk=self.version.pk,
1113+
commit=self.build['commit'],
1114+
build=self.build['id'],
11121115
)
11131116

11141117
def setup_python_environment(self):

0 commit comments

Comments
 (0)