Pior Bastida
63f7cb7b17
Use math/rand/v2
2024-10-28 18:39:54 +01:00
Mohammed Sohail
f4b56498f2
docs: small fix on semantics
2024-10-19 10:07:17 +03:00
kanzihuang
ae478d5b22
feat: revoke the task to modify task parameters and enqueue new task with the same task id ( #882 )
2024-10-19 10:06:12 +03:00
Patrick Barnum
b1e13893ff
[RFC] Adds Ping() to client/scheduler/server ( #585 )
...
* [RFC] Adds Ping() to client/scheduler/server
* Checks for scheduler state closed
2024-10-19 09:44:06 +03:00
Mohammed Sohail
461d922616
docs: apply recommendaded updates
...
* additionally, we log an erro in the case the redis client cannot shutdown in the scheduler
2024-10-19 09:05:17 +03:00
Mohammed Sohail
5daa3c52ed
Merge remote-tracking branch 'jerbob92-fork/feature/implement-reusing-redis-client' into develop
2024-10-19 08:58:39 +03:00
Tedja
d04888e748
feature: configurable janitor interval and deletion batch size ( #715 )
...
* feature: configurable janitor interval and deletion batch size
* warn user when they set a big number of janitor batch size
* Update CHANGELOG.md
---------
Co-authored-by: Agung Hariadi Tedja <agung.tedja@kumparan.com>
2024-05-06 14:11:52 +08:00
krhubert
fdbf54eb04
Update docs
2023-12-10 09:49:43 -08:00
Hubert Krauze
16ec43cbca
Add option to configure task check interval
2023-12-10 09:49:43 -08:00
Jeroen Bobbeldijk
9e548fc097
Implement reusing redis client
2023-09-19 11:20:32 +02:00
Trịnh Đức Bảo Linh(Kevin)
551b0c7119
feat (add): panic error handling ( #491 )
...
* closes #487
2023-07-20 21:33:39 +08:00
Emanuel Bennici
0275df8df4
Update redis/go-redis to v9
...
Version v9 implements the support for Redis v7 and has some
other improvements.
2023-04-17 22:30:33 -07:00
Trịnh Đức Bảo Linh
30d409371b
Fix comment typos
2022-05-16 21:14:15 -07:00
Ken Hibino
8b2a787759
Rename variables for public API documentation
2022-04-11 16:55:43 -07:00
Ken Hibino
39718f8bea
Always enqueue the aggregated task in the same queue
2022-04-11 16:55:43 -07:00
Ken Hibino
829f64fd38
Define GroupAggregator interface
2022-04-11 16:55:43 -07:00
Ken Hibino
888b5590fb
Make GroupMaxSize and GroupMaxDelay config optional
2022-04-11 16:55:43 -07:00
Ken Hibino
196db64d4d
Run aggregator on the server
2022-04-11 16:55:43 -07:00
Ken Hibino
1608366032
Add group related configuration options
2022-04-11 16:55:43 -07:00
Binaek Sarkar
ebd7a32c0f
conventions
2022-02-16 06:43:08 -08:00
Binaek Sarkar
ab8a4f5b1e
review corrections
2022-02-16 06:43:08 -08:00
Binaek Sarkar
d7ceb0c090
first cut
2022-02-16 06:43:08 -08:00
Ken Hibino
25832e5e95
Fix bug related to concurrently executing server state changes
2022-01-12 09:10:56 -08:00
Mahdi Dibaiee
ce46b07652
Allow configuration of DelayedTaskCheckInterval
2022-01-03 14:44:00 -08:00
Francisco Miamoto
ddfc6747a1
Fix typo in Server doc
2021-12-13 16:23:30 -08:00
Ken Hibino
f4ddac4dcc
Introduce Task Results
...
* Added Retention Option to specify retention TTL for tasks
* Added ResultWriter as a client interface to write result data for the associated task
2021-11-06 15:18:42 -07:00
Jason White
b3ef9e91a9
Upgrade go-redis/redis to version 8
2021-09-02 05:56:02 -07:00
Ken Hibino
f0db219f6a
Add IsFailure to Config
...
With this IsFailure config, users can provide a predicate function to
determine whether the error returned from Handler counts as a failure.
2021-09-01 06:00:54 -07:00
Ken Hibino
46b23d6495
Allow upper case characters in queue name
2021-07-15 06:55:47 -07:00
Ken Hibino
9c95c41651
Change Server API
...
* Rename ServerStatus to ServerState internally
* Rename terminate to shutdown internally
* Update Scheduler API to match Server API
2021-06-29 16:34:21 -07:00
Ken Hibino
97b5516183
Update RedisConnOpt interface
2021-01-31 06:09:40 -08:00
Ken Hibino
eba7c4e085
Record deadline within WorkerInfo
2021-01-31 06:09:40 -08:00
Ken Hibino
ccb682853e
Export DefaultRetryDelayFunc
2021-01-14 06:43:44 -08:00
Ken Hibino
00a25ca570
Rename DeadTask to ArchivedTask and action "kill" to "archive"
2021-01-14 06:43:44 -08:00
Ken Hibino
7235041128
Add SkipRetry error to be used as a return value from Handler
2021-01-14 06:43:44 -08:00
Ken Hibino
50e7f38365
Add Scheduler
...
- Renamed previously called scheduler to forwarder to resolve name
conflicts
2020-10-13 06:31:47 -07:00
Ken Hibino
a2d4ead989
Fix comments in Config
2020-09-14 21:48:05 -07:00
Ken Hibino
8e23b865e9
Update recoverer
2020-09-12 12:59:03 -07:00
Ken Hibino
e0a8f1252a
Update scheduler to check and enqueue for only the specified queues.
2020-09-12 12:59:03 -07:00
Ken Hibino
a913e6d73f
Add healthchecker to check broker connection
2020-07-28 22:45:57 -07:00
Ken Hibino
007fac8055
Invoke error handler when ctx.Done channel is closed
2020-07-06 05:48:31 -07:00
Ken Hibino
8d43fe407a
Change ErrorHandler function signature
2020-07-06 05:48:31 -07:00
Ken Hibino
feee87adda
Add recoverer
2020-07-06 05:48:31 -07:00
Ken Hibino
06c4a1c7f8
Limit the number of tasks moved by CheckAndEnqueue to prevent a long
...
running script
2020-06-08 06:06:18 -07:00
Ken Hibino
a38f628f3b
Refactor server state management
2020-05-31 06:41:19 -07:00
Ken Hibino
4492ed9255
Change internal constructor signatures.
...
Created "params" type to avoid positional arguments.
Personally it feels more explicit and reads better.
2020-05-17 13:25:24 -07:00
Ken Hibino
210b026b01
Add log messages around Server.Quiet
2020-05-16 07:12:08 -07:00
Ken Hibino
0289bc7a10
Clean up log messages
...
Moved development purpose log messages to DEBUG level.
2020-05-11 20:28:49 -07:00
Ken Hibino
ae942c93e5
Change default log level to info
2020-05-11 20:28:49 -07:00
Ken Hibino
73d62844e6
Change LogLevel to satisfy flag.Value interface
2020-05-11 06:22:43 -07:00