Page MenuHomeSoftware Heritage

D1489.id4888.diff
No OneTemporary

D1489.id4888.diff

diff --git a/swh/indexer/cli.py b/swh/indexer/cli.py
--- a/swh/indexer/cli.py
+++ b/swh/indexer/cli.py
@@ -146,7 +146,7 @@
help="Mapping(s) that should be re-scheduled (eg. 'npm', "
"'gemspec', 'maven')")
@click.option('--task-type',
- default='indexer_origin_metadata', show_default=True,
+ default='index-origin-metadata', show_default=True,
help="Name of the task type to schedule.")
@click.pass_context
def schedule_origin_metadata_reindex(
diff --git a/swh/indexer/journal_client.py b/swh/indexer/journal_client.py
--- a/swh/indexer/journal_client.py
+++ b/swh/indexer/journal_client.py
@@ -26,7 +26,7 @@
}),
'origin_visit_tasks': ('List[dict]', [
{
- 'type': 'indexer_origin_metadata',
+ 'type': 'index-origin-metadata',
'kwargs': {
'policy_update': 'update-dups',
'parse_ids': False,
diff --git a/swh/indexer/tests/test_cli.py b/swh/indexer/tests/test_cli.py
--- a/swh/indexer/tests/test_cli.py
+++ b/swh/indexer/tests/test_cli.py
@@ -67,7 +67,7 @@
def _origins_in_task_args(tasks):
"""Returns the set of origins contained in the arguments of the
- provided tasks (assumed to be of type indexer_origin_metadata)."""
+ provided tasks (assumed to be of type index-origin-metadata)."""
return reduce(
set.union,
(set(task['arguments']['args'][0]) for task in tasks),
@@ -77,7 +77,7 @@
def _assert_tasks_for_origins(tasks, origins):
expected_kwargs = {"policy_update": "update-dups", "parse_ids": False}
- assert {task['type'] for task in tasks} == {'indexer_origin_metadata'}
+ assert {task['type'] for task in tasks} == {'index-origin-metadata'}
assert all(len(task['arguments']['args']) == 1 for task in tasks)
assert all(task['arguments']['kwargs'] == expected_kwargs
for task in tasks)

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 3:09 PM (7 h, 5 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3215134

Event Timeline