Autodownload loop #4

Merged
rishighan merged 14 commits from autodownload-loop into main 2025-02-17 20:42:22 +00:00
Showing only changes of commit a710211a2c - Show all commits

View File

@@ -44,6 +44,7 @@ export default class ComicProcessorService extends Service {
day: date.getDate(),
};
},
rankSearchResults: (results, query: string) => {},
processJob: async (job: any) => {
try {
this.logger.info("Processing job:", JSON.stringify(job, null, 2));
@@ -138,6 +139,10 @@ export default class ComicProcessorService extends Service {
},
produceResultsToKafka: async (query: string) => {
try {
/*
Match and rank
*/
/*
Kafka messages need to be in a format that can be serialized to JSON, and a Map is not directly serializable in a way that retains its structure, hence why we use Object.fromEntries
*/