From 701d833cdf0e61bd427e89c848cda3bee038e15d Mon Sep 17 00:00:00 2001
From: Antoine Lambert <antoine.lambert@inria.fr>
Date: Thu, 16 May 2019 14:48:59 +0200
Subject: [PATCH] Update scheduler task names to new ones

Related T1508
---
 swh/lister/core/lister_base.py | 2 +-
 swh/lister/pypi/lister.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/swh/lister/core/lister_base.py b/swh/lister/core/lister_base.py
index f0089a93..b215810f 100644
--- a/swh/lister/core/lister_base.py
+++ b/swh/lister/core/lister_base.py
@@ -414,7 +414,7 @@ class SWHListerBase(abc.ABC, config.SWHConfig):
         Returns:
             the same information in a different form
         """
-        _type = 'origin-update-%s' % origin_type
+        _type = 'load-%s' % origin_type
         _policy = 'recurring'
         return utils.create_task_dict(_type, _policy, origin_url)
 
diff --git a/swh/lister/pypi/lister.py b/swh/lister/pypi/lister.py
index caa8089d..a488850d 100644
--- a/swh/lister/pypi/lister.py
+++ b/swh/lister/pypi/lister.py
@@ -28,7 +28,7 @@ class PyPILister(ListerOnePageApiTransport, SimpleLister):
         needed for the ingestion task creation.
 
         """
-        _type = 'origin-update-%s' % origin_type
+        _type = 'load-%s' % origin_type
         _policy = 'recurring'
         project_name = kwargs.get('name')
         project_metadata_url = kwargs.get('html_url')
-- 
GitLab