You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;; Note: This job misfires because it takes 7 seconds to run, but runs every 5 seconds, and isn't allowed to run concurrently with {:disallowConcurrentExecution? true}
59
-
;; So every second job fails to run, and is just ignored with the :do-nothing :misfire rule
60
-
{:job #ig/ref :test.job/three
61
-
:trigger #cronut/trigger {:type:cron
62
-
:cron"*/5 * * * * ?"
63
-
:misfire:do-nothing}}]}}
14
+
:cronut/scheduler {:update-check?false
15
+
:concurrent-execution-disallowed?true
16
+
:schedule[;; basic interval
17
+
{:job #ig/ref :test.job/one
18
+
:trigger #cronut/trigger {:type:simple
19
+
:interval2
20
+
:time-unit:seconds
21
+
:repeat:forever}}
22
+
23
+
;; full interval
24
+
{:job #ig/ref :test.job/two
25
+
:trigger #cronut/trigger {:type:simple
26
+
:interval3000
27
+
:repeat:forever
28
+
:identity ["trigger-two""test"]
29
+
:description"test trigger"
30
+
:start #inst "2019-01-01T00:00:00.000-00:00"
31
+
:end #inst "2019-02-01T00:00:00.000-00:00"
32
+
:priority5}}
33
+
34
+
;; shortcut interval
35
+
{:job #ig/ref :test.job/two
36
+
:trigger #cronut/interval 3500}
37
+
38
+
;; basic cron
39
+
{:job #ig/ref :test.job/two
40
+
:trigger #cronut/trigger {:type:cron
41
+
:cron"*/4 * * * * ?"}}
42
+
43
+
;; full cron
44
+
{:job #ig/ref :test.job/two
45
+
:trigger #cronut/trigger {:type:cron
46
+
:cron"*/6 * * * * ?"
47
+
:identity ["trigger-five""test"]
48
+
:description"another-test trigger"
49
+
:start #inst "2018-01-01T00:00:00.000-00:00"
50
+
:end #inst "2029-02-01T00:00:00.000-00:00"
51
+
:time-zone"Australia/Melbourne"
52
+
:priority4}}
53
+
54
+
;; shortcut cron
55
+
{:job #ig/ref :test.job/two
56
+
:trigger #cronut/cron "*/8 * * * * ?"}
57
+
58
+
;; Note: This job misfires because it takes 7 seconds to run, but runs every 5 seconds, and isn't allowed to run concurrently with {:disallowConcurrentExecution? true}
59
+
;; So every second job fails to run, and is just ignored with the :do-nothing :misfire rule
;; Note: This job misfires because it takes 7 seconds to run, but runs every 5 seconds, and isn't allowed to run concurrently with {:disallowConcurrentExecution? true}
59
-
;; So every second job fails to run, and is just ignored with the :do-nothing :misfire rule
60
-
{:job #ig/ref :test.job/three
61
-
:trigger #cronut/trigger {:type:cron
62
-
:cron"*/5 * * * * ?"
63
-
:misfire:do-nothing}}]}}
14
+
:cronut/scheduler {:update-check?false
15
+
:concurrent-execution-disallowed?true
16
+
:schedule[;; basic interval
17
+
{:job #ig/ref :test.job/one
18
+
:trigger #cronut/trigger {:type:simple
19
+
:interval2
20
+
:time-unit:seconds
21
+
:repeat:forever}}
22
+
23
+
;; full interval
24
+
{:job #ig/ref :test.job/two
25
+
:trigger #cronut/trigger {:type:simple
26
+
:interval3000
27
+
:repeat:forever
28
+
:identity ["trigger-two""test"]
29
+
:description"test trigger"
30
+
:start #inst "2019-01-01T00:00:00.000-00:00"
31
+
:end #inst "2019-02-01T00:00:00.000-00:00"
32
+
:priority5}}
33
+
34
+
;; shortcut interval
35
+
{:job #ig/ref :test.job/two
36
+
:trigger #cronut/interval 3500}
37
+
38
+
;; basic cron
39
+
{:job #ig/ref :test.job/two
40
+
:trigger #cronut/trigger {:type:cron
41
+
:cron"*/4 * * * * ?"}}
42
+
43
+
;; full cron
44
+
{:job #ig/ref :test.job/two
45
+
:trigger #cronut/trigger {:type:cron
46
+
:cron"*/6 * * * * ?"
47
+
:identity ["trigger-five""test"]
48
+
:description"another-test trigger"
49
+
:start #inst "2018-01-01T00:00:00.000-00:00"
50
+
:end #inst "2029-02-01T00:00:00.000-00:00"
51
+
:time-zone"Australia/Melbourne"
52
+
:priority4}}
53
+
54
+
;; shortcut cron
55
+
{:job #ig/ref :test.job/two
56
+
:trigger #cronut/cron "*/8 * * * * ?"}
57
+
58
+
;; Note: This job misfires because it takes 7 seconds to run, but runs every 5 seconds, and isn't allowed to run concurrently with {:disallowConcurrentExecution? true}
59
+
;; So every second job fails to run, and is just ignored with the :do-nothing :misfire rule
0 commit comments