Currently we are storing GRIB files locally whenever we call the CAMs endpoint.
Over time this will build up and we be storing a lot of historical files. Let's try and put a limit on the number of cached files, so that we manage this space usage.
Acceptance Criteria:
There is a new environment variable CLEAR_FORECAST_CACHE which if set to true will delete all GRIB files after the forecast ETL run.
This will be set to true in the deployed environment
Integration test needed to check if file is deleted ort not depending on variable setting
Currently we are storing GRIB files locally whenever we call the CAMs endpoint.
Over time this will build up and we be storing a lot of historical files. Let's try and put a limit on the number of cached files, so that we manage this space usage.
Acceptance Criteria:
Integration test needed to check if file is deleted ort not depending on variable setting