Rob Figueiredo
|
15ec73dd77
cron.Stop: return a context that waits for outstanding jobs to complete.
|
6 年之前 |
Rob Figueiredo
|
d279950244
cron/chain: add Chain & JobWrapper types to decorate job executions
|
6 年之前 |
Rob Figueiredo
|
0275a3e54f
cron_test: fix bug in tests leading to flakiness
|
6 年之前 |
Rob Figueiredo
|
1cba5e61f9
cron: fix: removing a job causes the next scheduled job to run too late
|
6 年之前 |
Rob Figueiredo
|
86fcb220ef
cleanup: remove unused function, add test coverage for cron.Entry
|
6 年之前 |
Rob Figueiredo
|
f63d6e8bf3
test: fix data races in the test code
|
6 年之前 |
Rob Figueiredo
|
d10bec7141
gofmt
|
6 年之前 |
Rob Figueiredo
|
1f8ec97c87
Functional options, Optional seconds, Overridable parser
|
6 年之前 |
Rob Figueiredo
|
1e507e218b
v3: Merge 'master' and 'v2' to create a v3 branch, and add a go.mod file
|
7 年之前 |
theothertomelliott
|
7002cd6810
Add tests for spec errors, noop on running start twice, and the blocking Run().
|
8 年之前 |
Bulat Gaifullin
|
f9402aa2d8
modified condition to select jobs to run in current loop
|
8 年之前 |
Bulat Gaifullin
|
65ba8ec6ba
added messages for asserts in tests
|
8 年之前 |
Kazuhisa Togo
|
64eb71ae78
Fix: Cron.run() was resetting the timezone
|
9 年之前 |
Wannes
|
17583deb80
Fixed remaining time.Now().Local()
|
9 年之前 |
Wannes
|
f6d519fc85
Make location non-modifiable, add test
|
9 年之前 |
Rob Figueiredo
|
0f39cf7ebc
Merge pull request #51 from blackskad/cron-job-panic-recovery
|
9 年之前 |
Travis Terry
|
1e80ac5674
test for #34
|
9 年之前 |
Thomas Meire
|
634cf55a82
Recover from panics in cron jobs
|
9 年之前 |
Byron Ruth
|
9ae18730f4
Return on Stop if cron is not running
|
10 年之前 |
Rob Figueiredo
|
2b666ea6e8
Return an EntryID when adding a job and allow it to be removed.
|
11 年之前 |
Cory Jacobsen
|
eab026bed5
Fixed bug when calling Entries()
|
12 年之前 |
Rob Figueiredo
|
c4429b3357
Make the Cron Schedule an interface and add a generic Schedule routine. Add a constant delay schedule with an interface of either Every(time.Minute) or a spec of "@every 5m"
|
13 年之前 |
Rob Figueiredo
|
95e41d4d24
Synchronize access to the cron Entries by providing snapshots. Also, rewrite tests to use WaitGroup instead of blocking on cron.run()
|
13 年之前 |
Rob Figueiredo
|
bd4b092e7c
Create/use a Job interface. Add a test.
|
13 年之前 |
Rob Figueiredo
|
f6244e2084
Operate in Local timezone (whoops), sort zero times to the end (and ignore them), and add some tests for this.
|
13 年之前 |
Rob Figueiredo
|
c2521cab59
Break Start() into Start() (runs in separate go routine) and Run() (previous behavior)
|
13 年之前 |
Rob Figueiredo
|
79c6cbe5a7
Add some tests for the job running.
|
13 年之前 |
Rob Figueiredo
|
78f5232d84
Add Schedule.Next() to find the next actiation time. Separate schedule methods from spec parsing functions. Change cron activation tests to a test of Next()
|
13 年之前 |
Rob Figueiredo
|
f16e0d5188
Add seconds, N/step handling, named months/dows, checking activation at a time, a bunch of cron spec tests.
|
13 年之前 |