await asyncio.sleep() calls in RecordTasks

This commit is contained in:
April 2022-11-13 14:31:42 -07:00
parent 38dc9c005c
commit 204520753a
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

View File

@ -9,14 +9,14 @@ from recordGenerators import CurrentObservations,HourlyForecast,DailyForecast
async def coTask():
while True:
await CurrentObservations.makeDataFile()
asyncio.sleep(5 * 60)
await asyncio.sleep(5 * 60)
async def hfTask():
while True:
await HourlyForecast.makeDataFile()
asyncio.sleep(60 * 60)
await asyncio.sleep(60 * 60)
async def dfTask():
while True:
await DailyForecast.makeDataFile()
asyncio.sleep(60 * 60)
await asyncio.sleep(60 * 60)