-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into feature/issue3292
- Loading branch information
Showing
13 changed files
with
842 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
grails-app/jobs/au/org/ala/ecodata/ImportSciStarterJob.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package au.org.ala.ecodata | ||
|
||
import grails.core.GrailsApplication | ||
|
||
class ImportSciStarterJob { | ||
|
||
GrailsApplication grailsApplication | ||
ProjectService projectService | ||
|
||
static triggers = { | ||
Boolean enabled = grailsApplication.config.getProperty("sciStarter.importEnabled", Boolean, true) | ||
if (enabled) { | ||
cron name: "every sunday", cronExpression: "0 0 0 ? * 1/7 *" | ||
} | ||
} | ||
|
||
def execute() { | ||
projectService.importProjectsFromSciStarter() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.