Skip to content

Commit 6c62e24

Browse files
committed
chg: [search engine] add task status function
1 parent 5734768 commit 6c62e24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/lib/search_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def tasks_enqueued(self):
127127
print("error: ", task.error)
128128

129129
def tasks_processing(self):
130-
tasks = self.client.get_tasks({"statuses": ["processing"],"limit": 10})
130+
tasks = self.client.get_tasks({"statuses": ["processing"],"limit": 100})
131131
print("currently processing tasks:", len(tasks.results))
132132
for task in tasks.results:
133133
print("=" * 100)
@@ -142,7 +142,7 @@ def tasks_processing(self):
142142
print("error: ", task.error)
143143

144144
def tasks_failed(self):
145-
tasks = self.client.get_tasks({"statuses": ["failed"], "limit": 10})
145+
tasks = self.client.get_tasks({"statuses": ["failed"], "limit": 100})
146146
print("currently failed tasks:", len(tasks.results))
147147
for task in tasks.results:
148148
print("=" * 100)

0 commit comments

Comments
 (0)