Skip to content

Commit 6e69a3c

Browse files
committed
update README.md
1 parent 6f6d36a commit 6e69a3c

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,26 @@ The scheduler supports the following fields:
6868
````clojure
6969
:cronut/scheduler {:update-check? false
7070
:concurrent-execution-disallowed? true
71-
:schedule [;; basic interval
72-
{:job #ig/ref :test.job/one
73-
:opts {:description "test job 1, identity auto-generated"}
74-
:trigger #cronut/trigger {:type :simple
75-
:interval 2
76-
:time-unit :seconds
77-
:repeat :forever}}
78-
79-
;; full interval
80-
{:job #ig/ref :job/two
81-
:opts #ig/ref :job/two-opts
82-
:trigger #cronut/trigger {:type :simple
83-
:interval 3000
84-
:repeat :forever
85-
:identity ["trigger-two" "test"]
86-
:description "test trigger"
87-
:start #inst "2019-01-01T00:00:00.000-00:00"
88-
:end #inst "2019-02-01T00:00:00.000-00:00"
89-
:priority 5}}
71+
:schedule
72+
[;; basic interval
73+
{:job #ig/ref :test.job/one
74+
:opts {:description "test job 1, identity auto-generated"}
75+
:trigger #cronut/trigger {:type :simple
76+
:interval 2
77+
:time-unit :seconds
78+
:repeat :forever}}
79+
80+
;; full interval
81+
{:job #ig/ref :job/two
82+
:opts #ig/ref :job/two-opts
83+
:trigger #cronut/trigger {:type :simple
84+
:interval 3000
85+
:repeat :forever
86+
:identity ["trigger-two" "test"]
87+
:description "test trigger"
88+
:start #inst "2019-01-01T00:00:00.000-00:00"
89+
:end #inst "2019-02-01T00:00:00.000-00:00"
90+
:priority 5}}
9091
````
9192

9293
## `:job` definition
@@ -116,7 +117,7 @@ or by returning a `defrecord` that implements the interface. e.g.
116117
Cronut supports further Quartz configuration of jobs (identity, description, recovery, and durability) by configuring an
117118
optional `opts` map for each scheduled item.
118119

119-
### Job example
120+
### Job integrant configuration
120121

121122
**Job definition**
122123

0 commit comments

Comments
 (0)