Skip to content

Commit

Permalink
revert worker pool dispatch change for dev testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Apr 19, 2024
1 parent c1e56ce commit 01c9c50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class WorkerPool(
fun start() {
log.info("starting worker pool $name with queue size $jobQueueSize and worker count $workerCount")

runBlocking(Dispatchers.IO) {
// runBlocking(Dispatchers.IO) {
runBlocking {
repeat(workerCount) { i ->
val j = i + 1
launch (CoroutineThreadContext(contextData = ThreadContextData(map = mapOf("workerID" to "$name-$j"), Stack()))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data class MinIOEventRecord(
val userIdentity: MinIOEventUserIdentity,

@JsonProperty("requestParameters")
val requestParameters: Map<String, String>,
val requestParameters: Map<String, String>?,

@JsonProperty("responseElements")
val responseElements: Map<String, String>,
Expand Down
2 changes: 1 addition & 1 deletion startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ waitFor cache-db cache-db 5432
waitFor rabbit "$GLOBAL_RABBIT_HOST" "${GLOBAL_RABBIT_PORT:-5672}"
waitFor minio "$S3_HOST" "$S3_PORT"

exec java -jar -XX:+CrashOnOutOfMemoryError $JVM_MEM_ARGS $JVM_ARGS -Djdk.httpclient.HttpClient.log=errors,headers /service.jar
exec java -jar -XX:+CrashOnOutOfMemoryError $JVM_MEM_ARGS $JVM_ARGS -Djdk.httpclient.HttpClient.log=errors,headers /service.jar

0 comments on commit 01c9c50

Please sign in to comment.