Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

two bug fix #886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyspider/libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def python_console(namespace=None):
def check_port_open(port, addr='127.0.0.1'):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex((addr, port))
sock.close()
if result == 0:
return True
else:
Expand Down
2 changes: 1 addition & 1 deletion pyspider/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def _check_task_done(self):
'''Check status queue'''
cnt = 0
try:
while True:
while cnt <= self.LOOP_LIMIT:
task = self.status_queue.get_nowait()
# check _on_get_info result here
if task.get('taskid') == '_on_get_info' and 'project' in task and 'track' in task:
Expand Down