@@ -20,55 +20,24 @@ Cronut supports **in-memory** scheduling of jobs within a single JVM. JDBC and d
20
20
21
21
# Contents
22
22
23
- - [ Configuration] ( #configuration )
24
- * [ ` :cronut/scheduler ` definition] ( #cronutscheduler-definition )
25
- + [ Scheduler example] ( #scheduler-example )
26
- * [ ` :job ` definition] ( #job-definition )
27
- + [ Job example] ( #job-example )
28
- * [ ` :trigger ` definition] ( #trigger-definition )
29
- + [ ` :trigger ` tagged literals] ( #trigger-tagged-literals )
30
- - [ ` #cronut/cron ` : Simple Cron Scheduling] ( #cronutcron-simple-cron-scheduling )
31
- - [ ` #cronut/interval ` : Simple Interval Scheduling] ( #cronutinterval-simple-interval-scheduling )
32
- - [ ` #cronut/trigger ` : Full trigger definition] ( #cronuttrigger-full-trigger-definition )
33
- * [ Concurrent execution] ( #concurrent-execution )
34
- + [
35
- ` :concurrent-execution-disallowed? ` on the global scheduler] ( #concurrent-execution-disallowed-on-the-global-scheduler )
36
- + [ ` :disallow-concurrent-execution? ` on a specific job] ( #disallow-concurrent-execution-on-a-specific-job )
37
- + [ Misfire configuration] ( #misfire-configuration )
38
- - [ System initialization] ( #system-initialization )
39
- - [ Example system] ( #example-system )
40
- * [ Configuration] ( #configuration-1 )
41
- * [ Job definitions] ( #job-definitions )
42
- * [ Helper functions] ( #helper-functions )
43
- * [ Putting it together] ( #putting-it-together )
44
- + [ Starting the system] ( #starting-the-system )
45
- + [ Logs of the running system] ( #logs-of-the-running-system )
46
- + [ Stopping the system] ( #stopping-the-system )
47
- - [ License] ( #license )
48
-
49
23
# Configuration
50
24
51
25
A quartz ` scheduler ` runs a ` job ` on a schedule defined by a ` trigger ` .
52
26
53
- ## ` : cronut/scheduler` definition
27
+ ## ` cronut/scheduler ` definition
54
28
55
- Cronut provides lifecycle implementation for the Quartz Scheduler, exposed via Integrant with ` : cronut/scheduler`
29
+ Cronut provides access to the Quartz Scheduler, exposed via the ` cronut/scheduler ` function.
56
30
57
- The scheduler supports the following fields :
31
+ Create a scheduler with the following configuration :
58
32
59
- 1 . (required) : schedule - a sequence of 'items' to schedule, each being a map containing a : job and : trigger
60
- 2 . (optional, default false) : concurrent-execution-disallowed ? - run all jobs with @DisableConcurrentExecution
33
+ 1 . (optional, default false) : concurrent-execution-disallowed ? - run all jobs with @DisableConcurrentExecution
61
34
2 . (optional, default false) : update-check ? check for Quartz updates on system startup.
62
35
63
36
### Scheduler example
64
37
65
38
```` clojure
66
- :cronut/scheduler {:schedule [{:job #ig/ref :test.job/two
67
- :trigger #cronut/interval 3500 }
68
- {:job #ig/ref :test.job/two
69
- :trigger #cronut/cron " */8 * * * * ?"
70
- :misfire :do-nothing }]
71
- :concurrent-execution-disallowed? true }
39
+ (cronut/scheduler {:concurrent-execution-disallowed? true
40
+ :update-check? false })
72
41
````
73
42
74
43
## ` :job ` definition
0 commit comments