Skip to content

Commit cd6d906

Browse files
committed
Fix silly issue with sync_callback
This was used when being chained to pass the prior result, we don't need it anymore.
1 parent 1934dda commit cd6d906

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

readthedocs/projects/tasks.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,12 +2063,8 @@ def clean_project_resources(project, version=None):
20632063

20642064

20652065
@app.task(queue='web')
2066-
def sync_callback(_, version_pk, commit, build, *args, **kwargs):
2067-
"""
2068-
Called once the sync_files tasks are done.
2069-
2070-
The first argument is the result from previous tasks, which we discard.
2071-
"""
2066+
def sync_callback(version_pk, commit, build, *args, **kwargs):
2067+
"""Called once the sync_files tasks are done."""
20722068
try:
20732069
fileify(version_pk, commit=commit, build=build)
20742070
except Exception:

0 commit comments

Comments
 (0)