Update
This commit is contained in:
parent
79836faa46
commit
9ea7a0d3ac
@ -20,7 +20,7 @@ dependencies {
|
|||||||
implementation("com.github.pgreze:kotlin-process:1.3.1")
|
implementation("com.github.pgreze:kotlin-process:1.3.1")
|
||||||
implementation("io.github.microutils:kotlin-logging-jvm:2.0.11")
|
implementation("io.github.microutils:kotlin-logging-jvm:2.0.11")
|
||||||
|
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha76")
|
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha77")
|
||||||
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
||||||
|
|
||||||
implementation("com.google.code.gson:gson:2.8.9")
|
implementation("com.google.code.gson:gson:2.8.9")
|
||||||
|
|||||||
@ -25,7 +25,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation("no.iktdev.library:subtitle:1.7-SNAPSHOT")
|
implementation("no.iktdev.library:subtitle:1.7-SNAPSHOT")
|
||||||
|
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha76")
|
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha77")
|
||||||
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
||||||
|
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
|
||||||
|
|||||||
@ -23,7 +23,7 @@ repositories {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":CommonCode"))
|
implementation(project(":CommonCode"))
|
||||||
|
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha76")
|
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha77")
|
||||||
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
||||||
|
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
|
||||||
|
|||||||
@ -24,7 +24,7 @@ repositories {
|
|||||||
|
|
||||||
val exposedVersion = "0.38.2"
|
val exposedVersion = "0.38.2"
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha76")
|
implementation("no.iktdev.streamit.library:streamit-library-kafka:0.0.2-alpha77")
|
||||||
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
implementation("no.iktdev:exfl:0.0.12-SNAPSHOT")
|
||||||
|
|
||||||
implementation("no.iktdev.streamit.library:streamit-library-db:0.0.6-alpha14")
|
implementation("no.iktdev.streamit.library:streamit-library-db:0.0.6-alpha14")
|
||||||
|
|||||||
@ -148,6 +148,7 @@ class MessageHandlerThread(threading.Thread):
|
|||||||
producer.close()
|
producer.close()
|
||||||
|
|
||||||
def get_metadata(self, name: str) -> Optional[DataResult]:
|
def get_metadata(self, name: str) -> Optional[DataResult]:
|
||||||
|
result = None
|
||||||
logger.info("Checking cache for offloading")
|
logger.info("Checking cache for offloading")
|
||||||
cache_result = ResultCache.get(name)
|
cache_result = ResultCache.get(name)
|
||||||
if cache_result:
|
if cache_result:
|
||||||
@ -160,6 +161,7 @@ class MessageHandlerThread(threading.Thread):
|
|||||||
if (result.statusType == "SUCCESS"):
|
if (result.statusType == "SUCCESS"):
|
||||||
logger.info("Storing response for %s in in-memory cache", name)
|
logger.info("Storing response for %s in in-memory cache", name)
|
||||||
ResultCache.add(name, result)
|
ResultCache.add(name, result)
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
def perform_action(self, title) -> DataResult:
|
def perform_action(self, title) -> DataResult:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user