Skip to content

Commit

Permalink
Save batches (#747) (#750)
Browse files Browse the repository at this point in the history
* feat: save batches env variable

* fix: identation

Co-authored-by: Ali Rashid <[email protected]>
  • Loading branch information
peterdudfield and alirashidAR authored Jan 21, 2025
1 parent 551ed5f commit b0a044d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ source = "../../modules/services/ecs_task"
{
id : module.forecasting_models_bucket.bucket_id,
access_policy_arn : module.forecasting_models_bucket.read_policy_arn
},
{
id : module.forecasting_models_bucket.bucket_id,
access_policy_arn : module.forecasting_models_bucket.write_policy_arn
}
]

Expand Down Expand Up @@ -591,7 +595,8 @@ source = "../../modules/services/ecs_task"
{ "name" : "SAVE_GSP_SUM", "value": "true"},
{ "name" : "RUN_EXTRA_MODELS", "value": "true"},
{ "name" : "DAY_AHEAD_MODEL", "value": "false"},
{ "name" : "USE_OCF_DATA_SAMPLER", "value": "true"}
{ "name" : "USE_OCF_DATA_SAMPLER", "value": "true"},
{ "name" : "SAVE_BATCHES_DIR", "value": "s3://${module.forecasting_models_bucket.bucket_id}/pvnet_batches" }
]

container-secret_vars = [
Expand Down Expand Up @@ -639,7 +644,8 @@ source = "../../modules/services/ecs_task"
{"name": "RUN_EXTRA_MODELS", "value": "false"},
{"name": "DAY_AHEAD_MODEL", "value": "false"},
{"name": "USE_ECMWF_ONLY", "value": "true"}, # THIS IS THE IMPORTANT one
{"name": "USE_OCF_DATA_SAMPLER", "value": "true"}
{"name": "USE_OCF_DATA_SAMPLER", "value": "true"},
{"name" : "SAVE_BATCHES_DIR", "value": "s3://${module.forecasting_models_bucket.bucket_id}/pvnet_batches" }
]

container-secret_vars = [
Expand Down Expand Up @@ -693,7 +699,8 @@ source = "../../modules/services/ecs_task"
{"name": "USE_ADJUSTER", "value": "true"},
{"name": "RUN_EXTRA_MODELS", "value": "false"},
{"name": "DAY_AHEAD_MODEL", "value": "true"},
{"name": "USE_OCF_DATA_SAMPLER", "value": "false"}
{"name": "USE_OCF_DATA_SAMPLER", "value": "false"},
{"name" : "SAVE_BATCHES_DIR", "value": "s3://${module.forecasting_models_bucket.bucket_id}/pvnet_batches" }
]

container-secret_vars = [
Expand Down

0 comments on commit b0a044d

Please sign in to comment.