GuglielmoTor commited on
Commit
7a1c198
·
verified ·
1 Parent(s): 1cb51f8

Update run_agentic_pipeline.py

Browse files
Files changed (1) hide show
  1. run_agentic_pipeline.py +4 -1
run_agentic_pipeline.py CHANGED
@@ -204,7 +204,10 @@ async def run_agentic_pipeline_autonomously(current_token_state_val, orchestrati
204
  year = orchestration_output.get('year', "year non disponibile")
205
  org_urn = current_token_state_val.get('org_urn')
206
 
207
- save_report_results(org_urn=org_urn, report_markdown=report_str, quarter=quarter, year=year, report_type='Quarter')
 
 
 
208
 
209
  actionable_okrs = orchestration_output.get('actionable_okrs_and_tasks') # This is the dict containing 'okrs' list
210
  krs_for_ui_selection_list = extract_key_results_for_selection(actionable_okrs) # Expects the dict
 
204
  year = orchestration_output.get('year', "year non disponibile")
205
  org_urn = current_token_state_val.get('org_urn')
206
 
207
+ try:
208
+ save_report_results(org_urn=org_urn, report_markdown=report_str, quarter=quarter, year=year, report_type='Quarter')
209
+ except as e:
210
+ logging.error(f"error saving report {e}")
211
 
212
  actionable_okrs = orchestration_output.get('actionable_okrs_and_tasks') # This is the dict containing 'okrs' list
213
  krs_for_ui_selection_list = extract_key_results_for_selection(actionable_okrs) # Expects the dict