John Roesler
41dd412a49
fix case where job removed causes panic when rescheduling ( #698 )
2024-03-23 13:57:09 -05:00
Drew Gonzales
b0bd435279
Allow more time for requestJobCtx ( #699 )
...
* allow more time for jobout request
* gofmt
2024-03-23 13:54:40 -05:00
John Roesler
ebec5e9f91
elector & locker were failing to send out when not leader ( #688 )
...
* elector & locker were failing to send out when not leader
* update test to confirm non-active elector/locker are checked
* clean up data race
* try to make test more reliable
2024-03-12 08:37:11 -05:00
dependabot[bot]
c2f95759d2
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 ( #684 )
2024-03-06 16:04:17 +00:00
John Roesler
27f2cbaa41
fix cases where default on send out is resulting in job not going out ( #686 )
2024-03-05 10:55:42 -06:00
dependabot[bot]
387cbe4fc2
Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 ( #675 )
2024-02-12 20:02:15 +00:00
John Roesler
51affbbc1e
remove codecov ( #672 )
...
* Delete codecov.yml
* remove code cov
2024-02-05 14:09:46 -06:00
John Roesler
0d01bb42c9
correct AfterJobRuns doc ( #670 )
2024-02-02 14:44:39 -06:00
John Roesler
b1ffc665fb
fix RunNow() when calling from a job returned by Jobs() ( #668 )
2024-02-02 09:46:08 -06:00
John Roesler
567cb9695c
fix unsafe map usage in singletonMode ( #665 )
...
* fix singletonMode unsafe map
* update lint issues
---------
Co-authored-by: a3sroot <a3sroot@gmail.com>
2024-01-30 15:50:10 -06:00
dependabot[bot]
d763684b9f
Bump github.com/google/uuid from 1.5.0 to 1.6.0 ( #664 )
2024-01-30 16:15:34 +00:00
John Roesler
5a894989c7
fix monthly jobs when counting days from the end ( #662 )
2024-01-21 16:04:16 -06:00
John Roesler
5c69001e27
Add job monitor interface to allow for collecting job metrics ( #659 )
...
* Add metrics each run of job
* Fix lint
* Fix test lint
* Fix backwards job status
* Add tags
* Comment example
* Rename it
* Fix some names
* Fix readme
* update readme, examples, naming
* fix unrelated test that was leaking scheduler
* remove overzealous leak detection
* rename interface methods
---------
Co-authored-by: gorodet-sky <gorodetsky.dev@gmail.com>
2024-01-17 15:39:11 -06:00
John Roesler
86d00630cf
add blocking example to readme
2024-01-17 11:50:33 -06:00
John Roesler
800821c923
wait for new job to be fully created before returning ( #658 )
2024-01-17 11:48:25 -06:00
John Roesler
ae366d91ea
make the order of the returned jobs slice deterministic ( #652 )
2024-01-02 10:47:01 -06:00
John Roesler
29a2f29e3c
fix to handle when next ends up in the past ( #650 )
...
* fix to handle when next ends up in the past
* add code comments
2024-01-02 10:32:14 -06:00
leedrum
73391ef88b
refactor: fix indent ( #649 )
2023-12-28 14:23:53 -06:00
John Roesler
848adb4508
fix example sorting
2023-12-21 13:45:13 -06:00
John Roesler
7ee4c50f57
bump golang.org/x/exp
2023-12-20 15:16:42 -06:00
John Roesler
a51820e30f
fixup Job and Scheduler interface docs
2023-12-20 15:16:16 -06:00
John Roesler
93fecb6152
move scheduler docs to interface
2023-12-20 07:13:58 -06:00
John Roesler
6e15f16d77
add new features, OneTimeJob and Job.RunNow() ( #646 )
2023-12-18 21:13:37 -06:00
dependabot[bot]
f7cd2bcf04
Bump github.com/google/uuid from 1.4.0 to 1.5.0 ( #645 )
2023-12-18 20:03:10 +00:00
dependabot[bot]
9ca81be247
Bump github/codeql-action from 2 to 3 ( #644 )
2023-12-18 20:01:11 +00:00
John Roesler
9803aad10f
fix weekly and monthly to handle midnight ( #643 )
2023-12-17 08:03:44 -06:00
John Roesler
80a4f43686
check function param length and type ( #638 )
2023-12-14 13:52:32 -06:00
John Roesler
b0fdf551b9
daily job next logic failed to consider 1 midnight attime ( #635 )
2023-12-13 15:54:12 -06:00
John Roesler
1177ef07d1
Update README.md
2023-12-13 10:48:53 -06:00
John Roesler
9ad844a80f
update supporters
2023-12-12 14:46:14 -06:00
dependabot[bot]
76950ff69f
Bump actions/setup-go from 4 to 5 ( #630 )
2023-12-11 17:51:57 +00:00
dependabot[bot]
81a4b60093
Bump actions/checkout from 3 to 4 ( #631 )
2023-12-11 17:49:47 +00:00
John Roesler
aa4400d224
Update docs, tests, and release prep ( #629 )
2023-12-11 10:39:59 -06:00
John Roesler
5814fbcb6f
allow max concurrent runs and singleton mode together ( #625 )
2023-11-28 06:48:22 -06:00
John Roesler
63225ac1a9
export function comments
2023-11-22 06:43:50 -06:00
John Roesler
77dba0ad18
correct lock to use job.name instead of id ( #623 )
...
Co-authored-by: Le Ha Khiem <hakhiem.va@gmail.com>
2023-11-16 07:49:43 -06:00
John Roesler
56373353b1
race in test
2023-11-14 15:09:02 -06:00
John Roesler
10ea8986c7
move singleton runner map to be fresh on executor start
2023-11-14 13:52:19 -06:00
John Roesler
9a3fd98dcc
don't touch global logger in log tests
2023-11-14 13:45:46 -06:00
John Roesler
28c482dab5
don't fail codecov
2023-11-14 13:28:36 -06:00
John Roesler
8c628fae2d
add job name to event listners ( #621 )
...
* add job name to event listners
* missed the examples
* missed executor
2023-11-14 11:39:27 -06:00
John Roesler
66caa1aabe
fix logger test and locker test
2023-11-14 11:06:50 -06:00
John Roesler
17ea8cad2f
Update README.md ( #619 )
2023-11-14 10:26:44 -06:00
John Roesler
04927311d1
test needs to output coverage
2023-11-14 10:22:45 -06:00
John Roesler
83459ca846
codecov with instead of env ( #618 )
2023-11-14 10:16:54 -06:00
John Roesler
da0b804d18
remove extra logging in executor
2023-11-14 09:59:48 -06:00
John Roesler
7fea987137
add distributed locker for v2 ( #614 )
...
* add distributed locker for v2
* fix logger test
* enhance logger test
2023-11-14 09:56:05 -06:00
Nguyen Thanh Quang
3e2df30371
force `executor` to use attached logger instead of "log" package ( #613 )
2023-11-12 21:38:11 -06:00
John Roesler
7e5ddc86bc
Add codecov ( #611 )
2023-11-10 14:02:00 -06:00
John Roesler
ad5613c55f
update docs and add mocks pkg ( #610 )
2023-11-09 16:00:18 -06:00