diff --git a/requirements-swh.txt b/requirements-swh.txt index 6bf26fec9c1b4899b2a7ed5cff5fb95272a33615..943560276fd37bd26eb17c970c813369a9540683 100644 --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,2 +1,2 @@ swh.core[db,github] >= 2.22.0 -swh.scheduler >= 0.8 +swh.scheduler >= 1.12.0 diff --git a/swh/lister/cli.py b/swh/lister/cli.py index 028e251415df97f9f6167cf6e9502a04c035530c..db24789d5b6b279db4b80679f17979f65a9cc6e4 100644 --- a/swh/lister/cli.py +++ b/swh/lister/cli.py @@ -69,6 +69,14 @@ def run(ctx, lister, options): if options: config.update(parse_options(options)[1]) + if "scheduler" not in config: + logger.warning( + "No scheduler configuration detected, using a temporary instance " + "with postgresql backend instead." + ) + + config["scheduler"] = {"cls": "temporary"} + get_lister(lister, **config).run()