Skip to content

Commit

Permalink
#146 Make Quartz jobs concurrent = false (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbearcsiro authored Jun 21, 2021
1 parent 361edd5 commit f2955f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions grails-app/jobs/au/org/ala/images/BatchFileLoadJob.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class BatchFileLoadJob {

def batchService

static concurrent = false
static triggers = {
simple repeatInterval: 5000l
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CheckOutsourcedTasksJob {
def imageService
def settingService

static concurrent = false
static triggers = {
simple repeatInterval: 30000l // execute job once every minute
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class PurgeCompletedBatchJob {

def batchService

static concurrent = false
static triggers = {
simple repeatInterval: 24 * 60 * 60 * 1000; // once a day
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class PurgeStagedFilesJob {
def settingService
def imageStagingService

static concurrent = false
static triggers = {
simple repeatInterval: 15 * 60 * 1000; // 15 minutes
}
Expand Down

0 comments on commit f2955f7

Please sign in to comment.