dongsheng commited on
Commit
bb04a18
·
verified ·
1 Parent(s): 142f54f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def queue_processor():
42
  """Process tasks in the queue"""
43
  while running:
44
  try:
45
- task_id, input_data, request_time = task_queue.get(timeout=0.1)
46
  with lock:
47
  task_status[task_id]['status'] = 'processing'
48
  task_status[task_id]['start_time'] = time.time()
 
42
  """Process tasks in the queue"""
43
  while running:
44
  try:
45
+ task_id, input_data, request_time = task_queue.get(timeout=3)
46
  with lock:
47
  task_status[task_id]['status'] = 'processing'
48
  task_status[task_id]['start_time'] = time.time()