mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-11 17:00:23 -05:00
await asyncio.sleep() calls in RecordTasks
This commit is contained in:
parent
38dc9c005c
commit
204520753a
@ -9,14 +9,14 @@ from recordGenerators import CurrentObservations,HourlyForecast,DailyForecast
|
|||||||
async def coTask():
|
async def coTask():
|
||||||
while True:
|
while True:
|
||||||
await CurrentObservations.makeDataFile()
|
await CurrentObservations.makeDataFile()
|
||||||
asyncio.sleep(5 * 60)
|
await asyncio.sleep(5 * 60)
|
||||||
|
|
||||||
async def hfTask():
|
async def hfTask():
|
||||||
while True:
|
while True:
|
||||||
await HourlyForecast.makeDataFile()
|
await HourlyForecast.makeDataFile()
|
||||||
asyncio.sleep(60 * 60)
|
await asyncio.sleep(60 * 60)
|
||||||
|
|
||||||
async def dfTask():
|
async def dfTask():
|
||||||
while True:
|
while True:
|
||||||
await DailyForecast.makeDataFile()
|
await DailyForecast.makeDataFile()
|
||||||
asyncio.sleep(60 * 60)
|
await asyncio.sleep(60 * 60)
|
Loading…
x
Reference in New Issue
Block a user