Skip to content
This repository was archived by the owner on Aug 13, 2021. It is now read-only.

Commit dae44aa

Browse files
author
Joel Klinger
committed
added endpoint field to estasks
1 parent ec05346 commit dae44aa

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

nesta/core/routines/arxiv/arxiv_lolvelty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def requires(self):
8686
test=test,
8787
index=index,
8888
dataset='arxiv',
89+
endpoint='arxlive',
8990
entity_type='article',
9091
kwargs=kwargs,
9192
batchable=f3p("batchables/novelty"

nesta/core/routines/arxiv/arxiv_root_task.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,14 @@ def requires(self):
6666
test = not self.production
6767
routine_id = f"ArxivLolveltyTask-{self.date}-{test}"
6868

69-
# Elasticsearch setup
70-
_, es_config = setup_es(endpoint='arxlive',
71-
dataset='arxiv',
72-
production=self.production,
73-
drop_and_recreate=self.drop_and_recreate)
7469
yield ArxivElasticsearchTask(date=self.date,
7570
process_batch_size=1000,
7671
routine_id=routine_id,
7772
grid_task_kwargs=grid_task_kwargs,
7873
test=not self.production,
79-
index=es_config['index'],
74+
drop_and_recreate=self.drop_and_recreate,
8075
dataset='arxiv',
76+
endpoint='arxlive',
8177
entity_type='article',
8278
kwargs=kwargs,
8379
batchable=f3p("batchables/novelty"

nesta/core/routines/crunchbase/crunchbase_lolvelty.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def requires(self):
3737
return LazyElasticsearchTask(routine_id=routine_id,
3838
test=test,
3939
index=index,
40-
dataset='crunchbase',
40+
dataset='companies',
41+
endpoint='health-scanner'
4142
entity_type='company',
4243
kwargs=kwargs,
4344
batchable=f3p("batchables/novelty/lolvelty"),

nesta/core/routines/health_data/nih_data/nih_lolvelty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def requires(self):
2424
test=test,
2525
index=index,
2626
dataset='nih',
27+
endpoint='health-scanner',
2728
entity_type='paper',
2829
kwargs=kwargs,
2930
batchable=f3p("batchables/novelty/lolvelty"),

nesta/core/routines/meetup/health_tagging/meetup_lolvelty.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def requires(self):
3535
test=test,
3636
index=index,
3737
dataset='meetup',
38+
endpoint='health-scanner',
3839
entity_type='meetup',
3940
kwargs=kwargs,
4041
batchable=f3p("batchables/novelty/lolvelty"),

0 commit comments

Comments
 (0)