Skip to content

Commit 463f879

Browse files
committed
Keep passing the config object
1 parent cc5dcb8 commit 463f879

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

readthedocs/projects/tasks.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,11 @@ def update_app_instances(self, html=False, localmedia=False, search=False,
624624
pdf=pdf,
625625
epub=epub,
626626
),
627-
callback=sync_callback.s(version_pk=self.version.pk, commit=self.build['commit']),
627+
callback=sync_callback.s(
628+
version_pk=self.version.pk,
629+
commit=self.build['commit'],
630+
config=self.config
631+
),
628632
)
629633

630634
def setup_python_environment(self):
@@ -1244,14 +1248,14 @@ def clear_artifacts(paths):
12441248

12451249

12461250
@app.task(queue='web')
1247-
def sync_callback(_, version_pk, commit, *args, **kwargs):
1251+
def sync_callback(_, version_pk, commit, config, *args, **kwargs):
12481252
"""
12491253
Called once the sync_files tasks are done.
12501254
12511255
The first argument is the result from previous tasks, which we discard.
12521256
"""
12531257
fileify(version_pk, commit=commit)
1254-
update_search(version_pk, commit=commit)
1258+
update_search(version_pk, commit=commit, config=config)
12551259

12561260

12571261
@app.task()

0 commit comments

Comments
 (0)