migrate background tasks to celery
This commit is contained in:
parent
efe3248c07
commit
93129333e6
7 changed files with 106 additions and 101 deletions
|
|
@ -1,9 +1,12 @@
|
|||
import json
|
||||
import logging
|
||||
import pathlib
|
||||
|
||||
from rec.query import QueryParameters
|
||||
from repositories.listing_repository import ListingRepository
|
||||
|
||||
logger = logging.getLogger("uvicorn.error")
|
||||
|
||||
|
||||
async def export_immoweb(
|
||||
repository: ListingRepository,
|
||||
|
|
@ -15,6 +18,7 @@ async def export_immoweb(
|
|||
query_parameters=query_parameters,
|
||||
limit=limit,
|
||||
)
|
||||
logger.info(f"Fetched {len(listings)} listings")
|
||||
|
||||
# Convert listings to immoweb format
|
||||
immoweb_listings = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue