SIENTIAPDE-1110

Refactor metadata handling in PredictionsBatch and PredictionProcess to improve clarity in input preparation.
This commit is contained in:
vitor-aignosi
2025-06-27 10:06:38 -03:00
parent 73a5ac1e38
commit f76ae839a9
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class PredictionsBatch():
# Prepare input for prediction_process workflow # Prepare input for prediction_process workflow
prediction_input = { prediction_input = {
**metadata, 'metadata': metadata,
'data': data, 'data': data,
'schema': input_data['schema'], 'schema': input_data['schema'],
'table_name': input_data['table_name'], 'table_name': input_data['table_name'],

View File

@@ -235,7 +235,7 @@ class PredictionProcess():
await workflow.execute_child_workflow( await workflow.execute_child_workflow(
'format_and_export_prediction', 'format_and_export_prediction',
{ {
**metadata, 'metadata': metadata,
'path_flag': path_flag, 'path_flag': path_flag,
'data': data, 'data': data,
'prediction_confidence': confidence, 'prediction_confidence': confidence,