Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
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()
|