GH-361: Add timeout and scheduling.pool.size for Cafe DSL demo

Fixes: #361

The default request timeout in Spring Integration is `30 seconds`
to not block the thread forever.
However, the logic in the Cafe Demo is longer even that one minute
to wait for all the drinks to be ready to free an order queue.

* Add `spring.integration.endpoint.default-timeout=-1` to wait on the customer request forever for the logic of the application
* Add `spring.task.scheduling.pool.size=10` to avoid deadlock when all the scheduled tasks compete for the same thread by default
* Upgrade to latest Gradle
* Upgrade to the latest Spring Boot

Related to: https://github.com/spring-projects/spring-boot/issues/41477
This commit is contained in:
Artem Bilan
2024-07-16 10:47:45 -04:00
parent 4f664ecab2
commit 0e17fd4eec
6 changed files with 36 additions and 23 deletions

Binary file not shown.

View File

@@ -1,6 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f