Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124312
D4958.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
864 B
Subscribers
None
D4958.id.diff
View Options
diff --git a/swh/lister/cli.py b/swh/lister/cli.py
--- a/swh/lister/cli.py
+++ b/swh/lister/cli.py
@@ -129,9 +129,10 @@
type=click.Choice(["high", "medium", "low"]),
help="Task priority for the listed repositories to ingest",
)
+@click.option("--legacy", help="Allow unported lister to run with such flag")
@click.argument("options", nargs=-1)
@click.pass_context
-def run(ctx, lister, priority, options):
+def run(ctx, lister, priority, options, legacy):
from swh.scheduler.cli.utils import parse_options
config = deepcopy(ctx.obj["config"])
@@ -139,8 +140,9 @@
if options:
config.update(parse_options(options)[1])
- config["priority"] = priority
- config["policy"] = "oneshot"
+ if legacy:
+ config["priority"] = priority
+ config["policy"] = "oneshot"
get_lister(lister, **config).run()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 6:19 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217244
Attached To
D4958: cli: Make cli work with new lister...
Event Timeline
Log In to Comment