Build: rename tasks in router
@@ -69,7 +69,7 @@ class TaskRouter:
log.info('Executing TaskRouter.', task=task)
if task not in (
'readthedocs.projects.tasks.builds.update_docs_task',
- 'readthedocs.projects.tasks.sync_repository_task',
+ 'readthedocs.projects.tasks.builds.sync_repository_task',
):
log.info('Skipping routing non-build task.', task=task)
return
@@ -147,7 +147,7 @@ class TaskRouter:
def _get_version(self, task, args, kwargs):
tasks = [
'readthedocs.projects.tasks.builds.update_docs_task',
- 'readthedocs.projects.tasks.sync_repository_task',
+ 'readthedocs.projects.tasks.builds.sync_repository_task',
]
version = None
if task in tasks:
