|
1 |
| -# rename this file to config.py and do not track it on git |
2 |
| -# example on how to get the token are in the README.md |
3 |
| -# go down to the bottom to the section called this is the stuff you want to change |
| 1 | +from sources_to_scrape import ( |
| 2 | + sources_to_index_test_grid_20240809, |
| 3 | +) |
4 | 4 |
|
5 |
| -from sources_to_scrape import sources_to_delete_20231108 |
6 |
| - |
7 |
| -# API Config |
8 | 5 | tokens: dict[str, str] = {
|
9 | 6 | "test_server": "token here",
|
10 | 7 | "ren_server": "token here",
|
11 | 8 | }
|
12 | 9 |
|
13 | 10 | AVAILABLE_INDEXERS_TEST = [
|
14 |
| - "NodeIndexer1/identity0", |
15 |
| - "NodeWebapp1/identity0", |
16 |
| - "NodeWebapp2/identity0", |
17 |
| - "NodeWebapp3/identity0", |
| 11 | + "IndexerServerA/identity0", |
| 12 | + "IndexerServerB/identity0", |
18 | 13 | ]
|
19 | 14 |
|
20 | 15 | AVAILABLE_INDEXERS_PROD = ["NodeINDEX1/identity0", "NodeINDEX2/identity0"]
|
21 | 16 |
|
22 | 17 | TEST_SERVER_INDEXES = [ # this is the test server list
|
23 |
| - "HELIO_Repository_1", |
24 |
| - "SDE_Acronyms", |
25 |
| - "SMD_ASTRO_Repository_1", |
26 |
| - "SMD_ASTRO_Repository_2", |
27 |
| - "SMD_EARTHSCIENCE_Repository_1", |
28 |
| - "SMD_GENELAB_Repository_1", |
29 |
| - "SMD_PLANETARY_Repository_1", |
30 |
| - "SMD_PLANETARY_Repository_2", |
| 18 | + # "sde_neural_test_index", |
| 19 | + "sde_index" |
31 | 20 | ]
|
32 | 21 |
|
33 | 22 | PROD_SERVER_INDEXES = [
|
34 | 23 | # "EDP_Audit_1",
|
35 |
| - "SMD_LSDA_Repository_1", |
36 |
| - # "EDP_UserMetadata_1", |
37 |
| - "SMD_NTRS_Repository_1", |
38 |
| - "GCMD_Repository_1", |
39 |
| - "SMD_PLANETARY_Repository_1", |
40 |
| - # "GCMD_Repository_1_Metadata", |
41 |
| - "SMD_PLANETARY_Repository_2", |
42 |
| - "GCMD_Repository_2", |
43 |
| - "STI_Repository_1", |
44 |
| - # "GCMD_Repository_3_Metadata", |
45 |
| - # "STI_Repository_1_Metadata", |
46 |
| - "HELIO_Repository_1", |
47 |
| - "STI_Repository_2", |
| 24 | + # "SMD_LSDA_Repository_1", |
| 25 | + # # "EDP_UserMetadata_1", |
| 26 | + # "SMD_NTRS_Repository_1", |
| 27 | + # "GCMD_Repository_1", |
| 28 | + # "SMD_PLANETARY_Repository_1", |
| 29 | + # # "GCMD_Repository_1_Metadata", |
| 30 | + # "SMD_PLANETARY_Repository_2", |
| 31 | + # "GCMD_Repository_2", |
| 32 | + # "STI_Repository_1", |
| 33 | + # # "GCMD_Repository_3_Metadata", |
| 34 | + # # "STI_Repository_1_Metadata", |
| 35 | + # "HELIO_Repository_1", |
| 36 | + # "STI_Repository_2", |
48 | 37 | "SDE_Index",
|
49 | 38 | # "STI_Repository_2_Metadata",
|
50 |
| - "SMD_ASTRO_Repository_1", |
51 |
| - "STI_Repository_3", |
52 |
| - "SMD_ASTRO_Repository_2", |
53 |
| - "STI_Repository_4", |
54 |
| - "SMD_EARTHSCIENCE_Repository_1", |
55 |
| - # "SinequaDoc", |
56 |
| - "SMD_GENELAB_Repository_1", |
57 |
| - "Test", |
| 39 | + # "SMD_ASTRO_Repository_1", |
| 40 | + # "STI_Repository_3", |
| 41 | + # "SMD_ASTRO_Repository_2", |
| 42 | + # "STI_Repository_4", |
| 43 | + # "SMD_EARTHSCIENCE_Repository_1", |
| 44 | + # # "SinequaDoc", |
| 45 | + # "SMD_GENELAB_Repository_1", |
| 46 | + # "Test", |
58 | 47 | ]
|
59 | 48 |
|
60 | 49 |
|
|
69 | 58 | },
|
70 | 59 | }
|
71 | 60 |
|
72 |
| -# this is the stuff you want to change |
73 |
| -collection_list: list[str] = sources_to_delete_20231108 # python list |
74 |
| -source = "SMD" |
75 |
| -batch_name: str = "delete_everywhere_20231108_test" |
| 61 | +# Job Creation Config |
| 62 | +collection_list: list[str] = sources_to_index_test_grid_20240809 # python list |
| 63 | +date = "20240809" |
| 64 | +source = "SDE" |
76 | 65 | server = "test"
|
77 | 66 |
|
78 | 67 | # auto assigned
|
| 68 | +batch_delete_name: str = f"sources_to_delete_on_{server}_{date}" |
| 69 | +batch_index_name: str = f"sources_to_index_on_{server}_{date}" |
79 | 70 | available_indexers = SERVER_INFO[server]["indexers"]
|
80 | 71 | indexes_to_delete_from = SERVER_INFO[server]["indexes"]
|
0 commit comments