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