Skip to content

Commit

Permalink
Merge pull request #828 from folio-org/release_6.1.9
Browse files Browse the repository at this point in the history
Release 6.1.9
  • Loading branch information
EthanFreestone authored Oct 4, 2024
2 parents 6884ce0 + 8e45fdf commit 0b80d1e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 6.1.9 2024-10-04
* Fixed problem with concurrentJobsGlobal not actually reading from environment variable

## 6.1.8 2024-09-09
* ERM-3321 Description can be too long for index, causing mod-agreements error when updating from 6.0.x to later versions or failure on saving agreements with a long description
* Swap basic GIN indices for GIN indices with trigram operator where they're not already set.
Expand Down
2 changes: 1 addition & 1 deletion service/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gorm.version=7.3.3

# Application
appName=mod-agreements
appVersion=6.1.8
appVersion=6.1.9
dockerTagSuffix=
dockerRepo=folioci

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,19 @@ order by pj.dateCreated
@PostConstruct
void init() {
// Set up the Executor
if ( grailsApplication.config.getProperty('concurrentJobsGlobal') instanceof Integer && grailsApplication.config.getProperty('concurrentJobsGlobal') > 0 ) {
CONCURRENT_JOBS_GLOBAL = grailsApplication.config.getProperty('concurrentJobsGlobal');
try {
def concurrentJobsGlobalConfig = grailsApplication.config.getProperty('concurrentJobsGlobal', int);
if (concurrentJobsGlobalConfig > 0) {
CONCURRENT_JOBS_GLOBAL = concurrentJobsGlobalConfig;
}
} catch (Exception e) {
log.error("Failed to read concurrentJobsGlobal from config: ${e}")
}

log.info("Configured jobConcurrency: ${CONCURRENT_JOBS_GLOBAL}")
// Base the number of small jobs executable on the limit imposed on the default runner.

// SO: This is not ideal. We don't want to limit jobs globally to 1 ideally. It should be
// SO: This is not ideal. We don't want to limit jobs globally to 1 ideally. It should be
// 1 per tenant, but that will involve implementing custom handling for the queue and executor.
// While we only have 1 tenant, this will suffice.
executorSvc = new ThreadPoolExecutor(
Expand Down

0 comments on commit 0b80d1e

Please sign in to comment.