Omkar008 commited on
Commit
6a7f4f3
·
verified ·
1 Parent(s): 938a3bb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -49,10 +49,10 @@ async def batch_processing_result(request: Request, background_tasks: Background
49
  # Add the processing task to background tasks
50
  if batch_job.status == 'completed':
51
  background_tasks.add_task(process_batch_data, batch_id)
52
- return {"batch_job_status":'true'}
53
 
54
  # Immediately return success response
55
- return {'batch_job_status':'false'}
56
 
57
  async def process_batch_data(batch_id: str):
58
  try:
 
49
  # Add the processing task to background tasks
50
  if batch_job.status == 'completed':
51
  background_tasks.add_task(process_batch_data, batch_id)
52
+ return {"batch_job_status":'completed'}
53
 
54
  # Immediately return success response
55
+ return {'batch_job_status':'notcompleted'}
56
 
57
  async def process_batch_data(batch_id: str):
58
  try: