fix builtin worker

This commit is contained in:
Paul Bienkowski 2021-11-22 18:35:11 +01:00
parent 004deb8e60
commit 2762e1f923

View file

@ -195,11 +195,8 @@ if not app.config.DEDICATED_WORKER:
async def worker(): async def worker():
from obs.api.process import process_tracks_loop from obs.api.process import process_tracks_loop
from obs.face.osm import DataSource, DatabaseTileSource
data_source = DataSource(DatabaseTileSource())
# run forever # run forever
await process_tracks_loop(data_source, 10) await process_tracks_loop(10)
app.add_task(worker()) app.add_task(worker())