From d4807f22bf295cf60504482c473cad2f112f0407 Mon Sep 17 00:00:00 2001 From: Simon Bear Date: Tue, 22 Jun 2021 01:09:15 +1000 Subject: [PATCH] #146 Make Quartz jobs concurrent = false --- grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy | 1 + grails-app/jobs/au/org/ala/images/CheckOutsourcedTasksJob.groovy | 1 + grails-app/jobs/au/org/ala/images/PurgeCompletedBatchJob.groovy | 1 + grails-app/jobs/au/org/ala/images/PurgeStagedFilesJob.groovy | 1 + 4 files changed, 4 insertions(+) diff --git a/grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy b/grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy index 59908c0c..92d57296 100644 --- a/grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy +++ b/grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy @@ -4,6 +4,7 @@ class BatchFileLoadJob { def batchService + static concurrent = false static triggers = { simple repeatInterval: 5000l } diff --git a/grails-app/jobs/au/org/ala/images/CheckOutsourcedTasksJob.groovy b/grails-app/jobs/au/org/ala/images/CheckOutsourcedTasksJob.groovy index add15c4c..7ac5f0e3 100644 --- a/grails-app/jobs/au/org/ala/images/CheckOutsourcedTasksJob.groovy +++ b/grails-app/jobs/au/org/ala/images/CheckOutsourcedTasksJob.groovy @@ -11,6 +11,7 @@ class CheckOutsourcedTasksJob { def imageService def settingService + static concurrent = false static triggers = { simple repeatInterval: 30000l // execute job once every minute } diff --git a/grails-app/jobs/au/org/ala/images/PurgeCompletedBatchJob.groovy b/grails-app/jobs/au/org/ala/images/PurgeCompletedBatchJob.groovy index 66c80138..7e5b3ba7 100644 --- a/grails-app/jobs/au/org/ala/images/PurgeCompletedBatchJob.groovy +++ b/grails-app/jobs/au/org/ala/images/PurgeCompletedBatchJob.groovy @@ -4,6 +4,7 @@ class PurgeCompletedBatchJob { def batchService + static concurrent = false static triggers = { simple repeatInterval: 24 * 60 * 60 * 1000; // once a day } diff --git a/grails-app/jobs/au/org/ala/images/PurgeStagedFilesJob.groovy b/grails-app/jobs/au/org/ala/images/PurgeStagedFilesJob.groovy index 26565e68..98d99db9 100644 --- a/grails-app/jobs/au/org/ala/images/PurgeStagedFilesJob.groovy +++ b/grails-app/jobs/au/org/ala/images/PurgeStagedFilesJob.groovy @@ -6,6 +6,7 @@ class PurgeStagedFilesJob { def settingService def imageStagingService + static concurrent = false static triggers = { simple repeatInterval: 15 * 60 * 1000; // 15 minutes }