Skip to content
Snippets Groups Projects
Commit c677ad60 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

indexing_lister: use task_ids to disable tasks

parent 75ba12e3
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ class SWHIndexingLister(SWHListerBase):
deleted_repos = self.winnow_models(
self.db_query_range(start, end), self.MODEL.uid, keep_these
)
tasks_to_disable = [repo for repo in deleted_repos
tasks_to_disable = [repo.task_id for repo in deleted_repos
if repo.task_id is not None]
if tasks_to_disable:
self.scheduler.disable_tasks(tasks_to_disable)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment