diff --git a/requirements-swh.txt b/requirements-swh.txt index 6bf26fe..9435602 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 028e251..db24789 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()