Skip to content

Commit 60f2e03

Browse files
committed
update arns in schedules and move all catalogue inputs to daily run
1 parent 82f14a9 commit 60f2e03

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

catalogue_graph/terraform/locals.tf

+4-5
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ locals {
108108
"label" : "Wikidata Linked MeSH Location Edges",
109109
"transformer_type" : "wikidata_linked_mesh_locations",
110110
"entity_type" : "edges"
111-
},
111+
}
112+
]
113+
114+
concepts_pipeline_inputs_daily = [
112115
{
113116
"label" : "Catalogue Concept Nodes",
114117
"transformer_type" : "catalogue_concepts",
@@ -119,10 +122,6 @@ locals {
119122
"transformer_type" : "catalogue_concepts",
120123
"entity_type" : "edges"
121124
},
122-
123-
]
124-
125-
concepts_pipeline_inputs_daily = [
126125
{
127126
"label" : "Catalogue Work Nodes",
128127
"transformer_type" : "catalogue_works",

catalogue_graph/terraform/state_machine_schedulers.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resource "aws_scheduler_schedule" "concepts_pipeline_monthly" {
88
schedule_expression = "cron(20 9 ? 1/1 MON#1 *)" # 1st Monday of the month at 9:20am
99

1010
target {
11-
arn = aws_sfn_state_machine.concepts_pipeline.arn
11+
arn = aws_sfn_state_machine.concepts_pipeline_monthly.arn
1212
role_arn = aws_iam_role.state_machine_execution_role.arn
1313
}
1414
}
@@ -23,7 +23,7 @@ resource "aws_scheduler_schedule" "concepts_pipeline_daily" {
2323
schedule_expression = "cron(20 14 ? * MON-THU *)" # MON-THU 2:20pm
2424

2525
target {
26-
arn = aws_sfn_state_machine.concepts_pipeline.arn
26+
arn = aws_sfn_state_machine.concepts_pipeline_daily.arn
2727
role_arn = aws_iam_role.state_machine_execution_role.arn
2828
}
2929
}

0 commit comments

Comments
 (0)