Skip to content

Commit

Permalink
#146 Make Quartz jobs concurrent = false
Browse files Browse the repository at this point in the history
  • Loading branch information
sbearcsiro committed Jun 21, 2021
1 parent 87ba91b commit d4807f2
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 d4807f2

Please sign in to comment.