lister.core: Stop creating origins when scheduling tasks
Prior to this commit, lister did create origins as well in the archive. Now, we only schedule new origins for ingestion.
This commit is contained in:
parent
a9a37a85bf
commit
64a9bc691d
5 changed files with 24 additions and 49 deletions
|
@ -119,7 +119,7 @@ class DebianLister(SWHListerHttpTransport, SWHListerBase):
|
|||
"""Generate the Package entries that didn't previously exist.
|
||||
|
||||
Contrary to SWHListerBase, we don't actually insert the data in
|
||||
database. `create_missing_origins_and_tasks` does it once we have the
|
||||
database. `schedule_missing_tasks` does it once we have the
|
||||
origin and task identifiers.
|
||||
"""
|
||||
by_name_version = {}
|
||||
|
@ -173,7 +173,7 @@ class DebianLister(SWHListerHttpTransport, SWHListerBase):
|
|||
self.db_session.add_all(added_packages)
|
||||
return added_packages
|
||||
|
||||
def create_missing_origins_and_tasks(self, models_list, added_packages):
|
||||
def schedule_missing_tasks(self, models_list, added_packages):
|
||||
"""We create tasks at the end of the full snapshot processing"""
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue