Ken Hibino
|
49c117f4d1
|
Change Client APIs
Use `Enqueue`, `EnqueueAt`, and `EnqueueIn` to enqueue and schedule
tasks.
`Schedule` method was removed.
|
2020-02-23 20:40:40 -08:00 |
|
Ken Hibino
|
d33ca98648
|
Use int as priority value type.
Do not use unsigned int for merely non-negative quantities as it
complicates simple arithmetic.
|
2020-02-13 06:23:51 -08:00 |
|
Ken Hibino
|
1b41c721b4
|
Change Handler interface to take context.Context
|
2020-02-13 06:23:51 -08:00 |
|
Ken Hibino
|
f66a65d6ca
|
Fix tests
|
2020-01-16 21:04:46 -08:00 |
|
Ken Hibino
|
24bb45b36b
|
[ci skip] Normalize queue priority numbers
|
2020-01-07 21:55:18 -08:00 |
|
Ken Hibino
|
f3a23b9b12
|
Make Task type immutable
This change makes it impossible to mutate payload within Handler or
RetryDelayFunc.
|
2020-01-05 09:55:39 -08:00 |
|
Ken Hibino
|
606b0fae64
|
Rename Client Process method to Schedule
|
2020-01-03 20:29:35 -08:00 |
|
Ken Hibino
|
c62833540c
|
Add license comment to all src files
|
2020-01-02 18:13:16 -08:00 |
|
Ken Hibino
|
9af14d9a6d
|
Add Config type to configure background processing behavior
|
2019-12-30 07:14:49 -08:00 |
|
Ken Hibino
|
fc71857c7c
|
Change NewBackground API to take *redis.Client
|
2019-12-29 14:55:16 -08:00 |
|
Ken Hibino
|
62624cb0d8
|
Change NewClient API to take *redis.Client
|
2019-12-29 14:55:16 -08:00 |
|
Ken Hibino
|
57838600ef
|
Rename to RedisConfig
|
2019-12-03 19:43:01 -08:00 |
|
Ken Hibino
|
b0a54cd2b2
|
Change Background API to take Handler interface
|
2019-12-02 20:45:40 -08:00 |
|
Ken Hibino
|
ad1291e0a1
|
Add test for background to verify no goroutine leaks
|
2019-11-29 20:49:18 -08:00 |
|