update retrieving books
This commit is contained in:
parent
737ac54c1b
commit
079735a81b
|
|
@ -42,7 +42,7 @@ spec:
|
|||
|
||||
container:
|
||||
image: axxs/hadith-ingestion:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
imagePullPolicy: Always
|
||||
command: [python, /app/src/main_hadithapi.py]
|
||||
args:
|
||||
- "--book-slug={{inputs.parameters.book-slug}}"
|
||||
|
|
|
|||
|
|
@ -142,7 +142,8 @@ class HadithAPIIngestionService:
|
|||
|
||||
# Get book mapping
|
||||
book_mapping = self.sync_books_from_api()
|
||||
|
||||
logger.info("containing books", book_mapping=book_mapping)
|
||||
logger.info("Book slugs", book_slug=book_slug)
|
||||
if book_slug not in book_mapping:
|
||||
logger.error(
|
||||
"book_not_mapped",
|
||||
|
|
|
|||
Loading…
Reference in New Issue