Skip to content

Commit 102714e

Browse files
committed
Increase frequency of daily data polls
1 parent f66ec27 commit 102714e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

downscaled_climate_data/sensors/loca2_sensor.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
from downscaled_climate_data.sensors.loca2_models import Loca2Models
1616

17-
# Give ourselves 2 hours to process a single model/scenario
18-
LOCA2_SENSOR_FREQUENCY = 3600 * 2
17+
# Give ourselves fifteen minutes to process a single model/scenario
18+
LOCA2_SENSOR_FREQUENCY = 3600 * 15
1919

2020
# For the smaller, monthly files, we can process them more frequently
2121
LOCA2_MONTHLY_SENSOR_FREQUENCY = 120
@@ -165,6 +165,7 @@ def sensor_implementation(context, models,
165165
job_name="loca2_data_job",
166166
minimum_interval_seconds=LOCA2_SENSOR_FREQUENCY,
167167
tags={
168+
"dataset": "loca2",
168169
"variable": "tasmax",
169170
"frequency": "daily"})
170171
def loca2_sensor_tasmax(
@@ -182,6 +183,7 @@ def loca2_sensor_tasmax(
182183
job_name="loca2_data_job",
183184
minimum_interval_seconds=LOCA2_SENSOR_FREQUENCY,
184185
tags={
186+
"dataset": "loca2",
185187
"variable": "tasmin",
186188
"frequency": "daily"})
187189
def loca2_sensor_tasmin(
@@ -199,6 +201,7 @@ def loca2_sensor_tasmin(
199201
job_name="loca2_data_job",
200202
minimum_interval_seconds=LOCA2_SENSOR_FREQUENCY,
201203
tags={
204+
"dataset": "loca2",
202205
"variable": "pr",
203206
"frequency": "daily"})
204207
def loca2_sensor_pr(
@@ -216,6 +219,7 @@ def loca2_sensor_pr(
216219
job_name="loca2_data_job",
217220
minimum_interval_seconds=LOCA2_MONTHLY_SENSOR_FREQUENCY,
218221
tags={
222+
"dataset": "loca2",
219223
"variable": "tasmax",
220224
"frequency": "monthly", })
221225
def loca2_sensor_monthly_tasmax(
@@ -234,6 +238,7 @@ def loca2_sensor_monthly_tasmax(
234238
job_name="loca2_data_job",
235239
minimum_interval_seconds=LOCA2_MONTHLY_SENSOR_FREQUENCY,
236240
tags={
241+
"dataset": "loca2",
237242
"variable": "tasmin",
238243
"frequency": "monthly", })
239244
def loca2_sensor_monthly_tasmin(
@@ -252,6 +257,7 @@ def loca2_sensor_monthly_tasmin(
252257
job_name="loca2_data_job",
253258
minimum_interval_seconds=LOCA2_MONTHLY_SENSOR_FREQUENCY,
254259
tags={
260+
"dataset": "loca2",
255261
"variable": "pr",
256262
"frequency": "monthly", })
257263
def loca2_sensor_monthly_pr(

0 commit comments

Comments
 (0)