Ken Hibino
|
60b887b8e3
|
Fix singnal handling for different systems
|
2020-04-05 14:37:23 -07:00 |
|
Ken Hibino
|
0bc6eba021
|
Allow custom logger to be used in Background
|
2020-03-12 08:40:37 -07:00 |
|
Ken Hibino
|
d664d68fa4
|
Extract out log package
|
2020-03-09 07:17:52 -07:00 |
|
Ken Hibino
|
a4e4c0b1d5
|
Call error handler when task was not processed successfully
|
2020-02-29 22:09:13 -08:00 |
|
Ken Hibino
|
8d3248e850
|
Add ErrorHandler type and add it to Config
|
2020-02-29 22:09:13 -08:00 |
|
Ken Hibino
|
830020eb39
|
Add ProcessState type to base package
|
2020-02-22 08:56:51 -08:00 |
|
Ken Hibino
|
906f231e6c
|
Fix data race in subscriber test
|
2020-02-16 18:22:59 -08:00 |
|
Ken Hibino
|
3d9a222bb3
|
Use sync.WaitGroup for shutdown
|
2020-02-16 18:22:59 -08:00 |
|
Ken Hibino
|
2bcaea52ce
|
Make heartbeater goroutine a monitor goroutine for process info.
|
2020-02-16 18:22:59 -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
|
6685827147
|
Add redis pubsub subscriber for cancelation
|
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
|
96f06ac89b
|
Add ps command to asynqmon
|
2020-02-02 20:56:33 -08:00 |
|
Ken Hibino
|
d03fa34eaf
|
Add hearbeater
|
2020-02-01 09:35:49 -08:00 |
|
Ken Hibino
|
db8e9d05c3
|
Add custom logger
|
2020-01-22 06:02:53 -08:00 |
|
Ken Hibino
|
207a6d2d1a
|
Fix benchmark tests
|
2020-01-18 15:07:15 -08:00 |
|
Ken Hibino
|
c29200b1fc
|
Add syncer to retry failed redis commands
|
2020-01-18 15:07:15 -08:00 |
|
Ken Hibino
|
0c2591ad7e
|
[ci skip] Update docs
|
2020-01-16 21:04:46 -08:00 |
|
Ken Hibino
|
43d7591250
|
Remove redis.Client type from asynq package API
|
2020-01-16 21:04:46 -08:00 |
|
Ken Hibino
|
cb2ebf18ac
|
[performance] Skip the overhead of json decoding when scheduling to one
queue
|
2020-01-14 20:46:47 -08:00 |
|
Ken Hibino
|
84eef4ed0b
|
Add strict-priority option
|
2020-01-12 18:39:57 -08:00 |
|
Ken Hibino
|
8ff5c5101e
|
[ci skip] Update changelog
|
2020-01-07 21:55:18 -08:00 |
|
Ken Hibino
|
24bb45b36b
|
[ci skip] Normalize queue priority numbers
|
2020-01-07 21:55:18 -08:00 |
|
Ken Hibino
|
03cb6eef09
|
Add Queues field to Config
|
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
|
c62833540c
|
Add license comment to all src files
|
2020-01-02 18:13:16 -08:00 |
|
Ken Hibino
|
ade97befbc
|
Minor cleanup
|
2019-12-30 07:14:49 -08:00 |
|
Ken Hibino
|
22b21df884
|
Allow user to specify retry delay duration
|
2019-12-30 07:14:49 -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
|
fef5ae6d3f
|
Rename poller to scheduler
|
2019-12-29 10:05:02 -08:00 |
|
Ken Hibino
|
24dd78b31c
|
Stop processing more tasks from the queue once TSTP signal is received
|
2019-12-17 06:18:22 -08:00 |
|
Ken Hibino
|
3e30c5916b
|
Trap and handle TSTP signal
|
2019-12-17 05:32:31 -08:00 |
|
Ken Hibino
|
911e600c41
|
Terminate background upon receiving SIGTERM or SIGINT
|
2019-12-16 20:19:58 -08:00 |
|
Ken Hibino
|
8932ca41b3
|
Minor improvement
|
2019-12-09 06:30:45 -08:00 |
|
Ken Hibino
|
aa8a3b8aaa
|
Update exported package API docs
|
2019-12-06 22:00:09 -08:00 |
|
Ken Hibino
|
4684f961c0
|
Refactor forwarding of scheduled tasks
|
2019-12-04 07:14:37 -08:00 |
|
Ken Hibino
|
d4e442d04f
|
Extract rdb to internal package
|
2019-12-03 22:13:48 -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 |
|
Ken Hibino
|
facdadd7b0
|
Change shutdown message to use info level logging
|
2019-11-29 07:14:28 -08:00 |
|
Ken Hibino
|
fab2dcb56e
|
Change newRDB signature
|
2019-11-27 06:41:54 -08:00 |
|
Ken Hibino
|
e6b1230c36
|
Update log messages on shutdown
|
2019-11-27 06:33:04 -08:00 |
|
Ken Hibino
|
f91004e6aa
|
Add DB field to RedisOpt to specify redis db index
|
2019-11-24 18:41:55 -08:00 |
|
Ken Hibino
|
d5c2b9b995
|
Follow the convention of declaring variable immediately after its guard
mutex
|
2019-11-23 20:18:39 -08:00 |
|
Ken Hibino
|
5eaf606a0d
|
fix: Nil out handler reference after all workers have finished
|
2019-11-23 17:09:57 -08:00 |
|
Ken Hibino
|
be3b774b51
|
Simplify Background API
|
2019-11-23 15:44:42 -08:00 |
|
Ken Hibino
|
e19c45cff3
|
Rename Launcher to Background
|
2019-11-23 15:22:43 -08:00 |
|