mirror of
https://github.com/hibiken/asynq.git
synced 2025-01-13 08:23:37 +08:00
Merge branch 'hibiken:master' into master
This commit is contained in:
commit
82f92d53e4
@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.24.0] - 2023-01-02
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- `PreEnqueueFunc`, `PostEnqueueFunc` is added in `Scheduler` and deprecated `EnqueueErrorHandler` (PR: https://github.com/hibiken/asynq/pull/476)
|
- `PreEnqueueFunc`, `PostEnqueueFunc` is added in `Scheduler` and deprecated `EnqueueErrorHandler` (PR: https://github.com/hibiken/asynq/pull/476)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Version of asynq library and CLI.
|
// Version of asynq library and CLI.
|
||||||
const Version = "0.23.0"
|
const Version = "0.24.0"
|
||||||
|
|
||||||
// DefaultQueueName is the queue name used if none are specified by user.
|
// DefaultQueueName is the queue name used if none are specified by user.
|
||||||
const DefaultQueueName = "default"
|
const DefaultQueueName = "default"
|
||||||
|
@ -382,7 +382,7 @@ if redis.call("ZREM", KEYS[2], ARGV[1]) == 0 then
|
|||||||
return redis.error_reply("NOT FOUND")
|
return redis.error_reply("NOT FOUND")
|
||||||
end
|
end
|
||||||
if redis.call("ZADD", KEYS[3], ARGV[3], ARGV[1]) ~= 1 then
|
if redis.call("ZADD", KEYS[3], ARGV[3], ARGV[1]) ~= 1 then
|
||||||
redis.redis.error_reply("INTERNAL")
|
return redis.error_reply("INTERNAL")
|
||||||
end
|
end
|
||||||
redis.call("HSET", KEYS[4], "msg", ARGV[4], "state", "completed")
|
redis.call("HSET", KEYS[4], "msg", ARGV[4], "state", "completed")
|
||||||
local n = redis.call("INCR", KEYS[5])
|
local n = redis.call("INCR", KEYS[5])
|
||||||
@ -419,7 +419,7 @@ if redis.call("ZREM", KEYS[2], ARGV[1]) == 0 then
|
|||||||
return redis.error_reply("NOT FOUND")
|
return redis.error_reply("NOT FOUND")
|
||||||
end
|
end
|
||||||
if redis.call("ZADD", KEYS[3], ARGV[3], ARGV[1]) ~= 1 then
|
if redis.call("ZADD", KEYS[3], ARGV[3], ARGV[1]) ~= 1 then
|
||||||
redis.redis.error_reply("INTERNAL")
|
return redis.error_reply("INTERNAL")
|
||||||
end
|
end
|
||||||
redis.call("HSET", KEYS[4], "msg", ARGV[4], "state", "completed")
|
redis.call("HSET", KEYS[4], "msg", ARGV[4], "state", "completed")
|
||||||
local n = redis.call("INCR", KEYS[5])
|
local n = redis.call("INCR", KEYS[5])
|
||||||
|
Loading…
Reference in New Issue
Block a user