apache / apache/grails-core

Suggestion: Configure triggers from properties

Open
#16,199 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-quartz
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

I'm sure this is a more complex task than it sounds, but the basic idea mightbe something like:

(application.yml):

```
quartz;
triggers:
- name: 'cronTrigger1'
type: cron
cronExpression: '0 0 2 * * ?'
- name: 'cronTrigger2'
type: cron
cronExpression: '0 0 12 * * 1'
- name: 'simpleTrigger1'
type: simple
startDelay:10000,
repeatInterval: 30000,
repeatCount: 10
```

Then perhaps the Job would look like:
```
class MyJob {
static triggers = {
configured name: 'cronTrigger1'
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the proposed `application.yml` trigger configuration and the `MyJob` `static triggers` declaration in the issue. Work out how the suggested `configured` trigger would connect those examples; the issue names no source files or tests. Done would mean the proposed configuration can define the cron and simple triggers and a job can refer to one by name.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.