Skip to content

Commit 1917836

Browse files
committed
cronut README.md wip
1 parent c05a1fa commit 1917836

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

cronut-integrant/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ A quartz `scheduler` runs a `job` on a schedule defined by a `trigger`.
4848

4949
## `:cronut/scheduler` definition
5050

51-
Cronut provides lifecycle implementation for the Quartz Scheduler, exposed via Integrant with `:cronut/scheduler`
51+
Cronut provides access to the Quartz Scheduler, exposed via Integrant with `:cronut/scheduler`
5252

5353
The scheduler supports the following fields:
5454

5555
1. (required) :schedule - a sequence of 'items' to schedule, each being a map containing a :job and :trigger
5656
2. (optional, default false) :concurrent-execution-disallowed? - run all jobs with @DisableConcurrentExecution
57-
2. (optional, default false) :update-check? check for Quartz updates on system startup.
57+
3. (optional, default false) :update-check? check for Quartz updates on system startup.
5858

5959
### Scheduler example
6060

cronut/README.md

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,55 +20,24 @@ Cronut supports **in-memory** scheduling of jobs within a single JVM. JDBC and d
2020

2121
# Contents
2222

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-
4923
# Configuration
5024

5125
A quartz `scheduler` runs a `job` on a schedule defined by a `trigger`.
5226

53-
## `:cronut/scheduler` definition
27+
## `cronut/scheduler` definition
5428

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.
5630

57-
The scheduler supports the following fields:
31+
Create a scheduler with the following configuration:
5832

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
6134
2. (optional, default false) :update-check? check for Quartz updates on system startup.
6235

6336
### Scheduler example
6437

6538
````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})
7241
````
7342

7443
## `:job` definition

0 commit comments

Comments
 (0)