Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sktime_mcp/runtime/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ async def fit_predict_async(
status=JobStatus.FAILED,
errors=[f"Failed to load dataset: {data_result.get('error')}"],
)
return data_result
return {**data_result, "job_id": job_id}

y = data_result["data"]
X = data_result.get("exog")
Expand All @@ -359,7 +359,7 @@ async def fit_predict_async(
status=JobStatus.FAILED,
errors=[f"Fit failed: {fit_result.get('error')}"],
)
return fit_result
return {**fit_result, "job_id": job_id}

# Step 3: Generate predictions
self._job_manager.update_job(
Expand All @@ -379,7 +379,7 @@ async def fit_predict_async(
status=JobStatus.FAILED,
errors=[f"Prediction failed: {predict_result.get('error')}"],
)
return predict_result
return {**predict_result, "job_id": job_id}

# Mark as completed
self._job_manager.update_job(
Expand All @@ -390,7 +390,7 @@ async def fit_predict_async(
result=predict_result,
)

return predict_result
return {**predict_result, "job_id": job_id}

except Exception as e:
logger.exception(f"Error in async fit_predict for job {job_id}")
Expand Down