Omkar008 commited on
Commit
c65b957
·
verified ·
1 Parent(s): f5f2c5a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -4
main.py CHANGED
@@ -179,8 +179,8 @@ async def process_batch_job(dataset: Dict[str, Any], batch_job_id: str):
179
 
180
  # Update status in Supabase
181
  supabase.table("batch_processing_details").insert({
182
- "batch_job_status": True,
183
- "completed_at": datetime.utcnow().isoformat()
184
  }).execute()
185
 
186
  logger.info(f"Batch job {batch_job_id} processed successfully")
@@ -190,6 +190,5 @@ async def process_batch_job(dataset: Dict[str, Any], batch_job_id: str):
190
  # Update status with error
191
  supabase.table("batch_processing_details").insert({
192
  "batch_job_status": False,
193
- "error": str(e),
194
- "completed_at": datetime.utcnow().isoformat()
195
  }).execute()
 
179
 
180
  # Update status in Supabase
181
  supabase.table("batch_processing_details").insert({
182
+ "batch_job_status": True
183
+
184
  }).execute()
185
 
186
  logger.info(f"Batch job {batch_job_id} processed successfully")
 
190
  # Update status with error
191
  supabase.table("batch_processing_details").insert({
192
  "batch_job_status": False,
193
+ "error": str(e)
 
194
  }).execute()