Ken Hibino
c1d0497182
Remove debug log
2019-12-06 22:30:11 -08:00
Ken Hibino
62fb3cf7d9
Add flags to stats command
2019-12-06 22:06:59 -08:00
Ken Hibino
b749d8bd34
Use cobra for tools
2019-12-06 22:06:59 -08:00
Ken Hibino
5c2cb917e1
Change cmd dir to tools
2019-12-06 22:06:59 -08:00
Ken Hibino
e658f04648
Merge pull request #7 from hibiken/feature/doc
...
Add package documentation
2019-12-06 22:04:21 -08:00
Ken Hibino
aa8a3b8aaa
Update exported package API docs
2019-12-06 22:00:09 -08:00
Ken Hibino
46e84769b5
Add doc.go for package documentation
2019-12-06 21:24:36 -08:00
Ken Hibino
20ad6daa6e
Update todos
2019-12-05 17:28:05 -08:00
Ken Hibino
3d72ca5a74
Merge pull request #6 from hibiken/refactor/internalpkg
...
Create internal package for reuse
2019-12-05 17:18:01 -08:00
Ken Hibino
5626670007
Update asynqmon
2019-12-05 17:14:35 -08:00
Ken Hibino
f3b9745228
Add tests for rdb list methods
2019-12-05 17:13:37 -08:00
Ken Hibino
437fb03bb3
Unexport redis key name constants from rdb package
2019-12-04 17:23:11 -08:00
Ken Hibino
918f33d37d
Implement all "list tasks" methods in rdb
2019-12-04 17:10:39 -08:00
Ken Hibino
afacc31990
Minor improvements
2019-12-04 16:58:07 -08:00
Ken Hibino
998e761660
Use different redis db for each package tests
2019-12-04 07:39:16 -08:00
Ken Hibino
28bfb6d83a
Rename to CheckAndEnqueue
2019-12-04 07:28:57 -08:00
Ken Hibino
af1dcf5044
Fix monitor command
2019-12-04 07:18:15 -08:00
Ken Hibino
4684f961c0
Refactor forwarding of scheduled tasks
2019-12-04 07:14:37 -08:00
Ken Hibino
318b24b3b8
Rename MoveAll to RestoreUnfinished
2019-12-04 06:50:52 -08:00
Ken Hibino
4531e90b9d
Define Schedule and RetryLater method for RDB
2019-12-04 06:45:30 -08:00
Ken Hibino
985018e1b5
Rename rdb Remove to Done
2019-12-04 06:33:05 -08:00
Ken Hibino
39f177dabf
Change rdb Dequeue signature
2019-12-04 06:25:58 -08:00
Ken Hibino
d4e442d04f
Extract rdb to internal package
2019-12-03 22:13:48 -08:00
Ken Hibino
593f2b0482
Add command "asynqmon" for monitoring
2019-12-03 20:02:29 -08:00
Ken Hibino
319d157d47
Change inspector's list methods to return specific task type for each
...
queue
2019-12-03 19:50:12 -08:00
Ken Hibino
28dae0fdd3
Add task types specific to each queue
2019-12-03 19:50:12 -08:00
Ken Hibino
5446f877ce
Add List* methods to Inspector
2019-12-03 19:50:12 -08:00
Ken Hibino
9c2d2a612d
Create Inspector
2019-12-03 19:50:12 -08:00
Ken Hibino
57838600ef
Rename to RedisConfig
2019-12-03 19:43:01 -08:00
Ken Hibino
4afb3a2401
Merge pull request #5 from hibiken/api/handler
...
Change Background to take Handler interface
2019-12-02 20:49:43 -08:00
Ken Hibino
b0a54cd2b2
Change Background API to take Handler interface
2019-12-02 20:45:40 -08:00
Ken Hibino
1a996e0d40
Update readme
2019-12-01 19:03:31 -08:00
Ken Hibino
1a97d4ba98
Add MIT License
2019-11-30 10:21:25 -08:00
Ken Hibino
b9cb95b1e1
Add readme
2019-11-30 09:38:46 -08:00
Ken Hibino
d31532c8f5
Add .travis.yml
2019-11-30 09:08:14 -08:00
Ken Hibino
8eb6f04ef4
Move test helpers to asynq_test.go
2019-11-29 20:53:29 -08:00
Ken Hibino
ad1291e0a1
Add test for background to verify no goroutine leaks
2019-11-29 20:49:18 -08:00
Ken Hibino
09662432c8
Update todos
2019-11-29 20:16:39 -08:00
Ken Hibino
634af38e3a
Add test for client
2019-11-29 17:40:31 -08:00
Ken Hibino
d53e5d3350
Add test for processor
2019-11-29 17:12:15 -08:00
Ken Hibino
eed375b138
Add test for poller
2019-11-29 08:00:43 -08:00
Ken Hibino
facdadd7b0
Change shutdown message to use info level logging
2019-11-29 07:14:28 -08:00
Ken Hibino
bdbee31b86
Add test for retry task logic
2019-11-28 11:22:42 -08:00
Ken Hibino
da0bfa1519
Add test for (*rdb).kill
2019-11-28 07:47:12 -08:00
Ken Hibino
481d3c6b77
Refactor rdb tests
2019-11-28 07:24:52 -08:00
Ken Hibino
e5e3fee742
Add test for (*rdb).remove
2019-11-28 06:50:05 -08:00
Ken Hibino
1617278d86
Rename (*rdb).lrem to (*rdb).remove
2019-11-27 20:05:31 -08:00
Ken Hibino
efaceb8a03
Clean up error messages from rdb methods
2019-11-27 19:43:33 -08:00
Ken Hibino
c9a8f5fabd
Minor cleanup
2019-11-27 19:36:56 -08:00
Ken Hibino
0db4b8a34f
fix:Remove task from in_progress when worker goroutine finishes
...
There was a bug related to the logic of removing task from
"asynq:in_progress" list when worker is finished. The task was not
properly removed from the list when the taskMessage gets modified before
the deferred call. More specifically when task was scheduled for retry
the message was modified and therefore LREM could not properly removed
the message from "asynq:in_progress" list.
2019-11-27 14:26:04 -08:00