From fc98bc1035e1fb4dc6622b11669e30f866ce2ac2 Mon Sep 17 00:00:00 2001
From: Antoine Lambert <anlambert@softwareheritage.org>
Date: Wed, 11 Dec 2024 12:02:46 +0100
Subject: [PATCH] cli: Replace scheduler temporary backend by memory one

Scheduler temporary backend has been removed in favor of a
more efficient memory backend.
---
 requirements-swh.txt  | 2 +-
 requirements-test.txt | 2 +-
 swh/lister/cli.py     | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/requirements-swh.txt b/requirements-swh.txt
index 211d36cc..074e9612 100644
--- a/requirements-swh.txt
+++ b/requirements-swh.txt
@@ -1,2 +1,2 @@
 swh.core[db] >= 3.4.0
-swh.scheduler >= 2.5.0
+swh.scheduler >= 2.7.0
diff --git a/requirements-test.txt b/requirements-test.txt
index 09f9b5db..d5134fb5 100644
--- a/requirements-test.txt
+++ b/requirements-test.txt
@@ -2,7 +2,7 @@ pandas
 pytest >= 8.1
 pytest-mock
 requests_mock
-swh-scheduler[testing] >= 2.4.0
+swh-scheduler[testing] >= 2.7.0
 types-beautifulsoup4
 types-click
 types-pyyaml
diff --git a/swh/lister/cli.py b/swh/lister/cli.py
index 4c4d0b4f..9477b5a0 100644
--- a/swh/lister/cli.py
+++ b/swh/lister/cli.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2018-2021  The Software Heritage developers
+# Copyright (C) 2018-2024  The Software Heritage developers
 # See the AUTHORS file at the top-level directory of this distribution
 # License: GNU General Public License version 3, or any later version
 # See top-level LICENSE file for more information
@@ -72,10 +72,10 @@ def run(ctx, lister, options):
     if "scheduler" not in config:
         logger.warning(
             "No scheduler configuration detected, using a temporary instance "
-            "with postgresql backend instead."
+            "with a memory backend instead."
         )
 
-        config["scheduler"] = {"cls": "temporary"}
+        config["scheduler"] = {"cls": "memory"}
 
     print(get_lister(lister, **config).run())
 
-- 
GitLab