Skip to content

Commit

Permalink
BUGFIX: comment out stale key check from startup process (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
shdunning authored Apr 4, 2017
1 parent e59a139 commit bccd9e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ var redisRemoveStaleKeys = fmt.Sprintf(`
-- getConcurrencyKey will be inserted below
%s
-- TODO: need something more efficient than KEYS cmd
local function isInProgress(jobQueue)
return redis.call('keys', jobQueue .. ':*:inprogress')
end
Expand Down
3 changes: 2 additions & 1 deletion worker_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ func (wp *WorkerPool) Start() {
}
wp.started = true

wp.removeStaleKeys()
// TODO: need to fix Lua script to remove stale keys
// wp.removeStaleKeys()
wp.writeConcurrencyControlsToRedis()
go wp.writeKnownJobsToRedis()

Expand Down

0 comments on commit bccd9e7

Please sign in to comment.