Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webmagic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
webmagic
Commits
cfde3b76
Commit
cfde3b76
authored
Dec 02, 2015
by
Yihua Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #237 from SpenceZhou/master
Update RedisScheduler.java
parents
5f9e1a96
165e5a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
RedisScheduler.java
.../java/us/codecraft/webmagic/scheduler/RedisScheduler.java
+1
-1
No files found.
webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/RedisScheduler.java
View file @
cfde3b76
...
...
@@ -119,7 +119,7 @@ public class RedisScheduler extends DuplicateRemovedScheduler implements Monitor
public
int
getTotalRequestsCount
(
Task
task
)
{
Jedis
jedis
=
pool
.
getResource
();
try
{
Long
size
=
jedis
.
scard
(
get
Queue
Key
(
task
));
Long
size
=
jedis
.
scard
(
get
Set
Key
(
task
));
return
size
.
intValue
();
}
finally
{
pool
.
returnResource
(
jedis
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment