ganesh-vilje commited on
Commit
6648afb
ยท
1 Parent(s): c4a01de

feat: Display final_output_url in pipeline completion message - shows presigned S3 URL where all component outputs are stored with expiry time

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1237,6 +1237,12 @@ Here's what I'll do:
1237
 
1238
  # V3: Check if we have S3 final output URL
1239
  final_output_url = final_payload.get("final_output_url", "")
 
 
 
 
 
 
1240
 
1241
  friendly_final = f"""๐ŸŽ‰ **Pipeline Completed Successfully!**
1242
 
@@ -1245,7 +1251,7 @@ Here's what I'll do:
1245
  - Total Steps: {len(steps_completed)}
1246
  - Successful: {success_count}
1247
  - Executor: {executor_used}
1248
-
1249
  ๐Ÿ’พ **Would you like to save this workflow for future use?**
1250
  Type **'save workflow'** or **'yes'** to save it.
1251
 
 
1237
 
1238
  # V3: Check if we have S3 final output URL
1239
  final_output_url = final_payload.get("final_output_url", "")
1240
+ final_output_expires = final_payload.get("final_output_expires_at", "")
1241
+
1242
+ # Build URL section
1243
+ url_section = ""
1244
+ if final_output_url:
1245
+ url_section = f"\n๐Ÿ“Š **Results Available:**\n- [Download All Outputs]({final_output_url})\n- Expires: {final_output_expires}\n"
1246
 
1247
  friendly_final = f"""๐ŸŽ‰ **Pipeline Completed Successfully!**
1248
 
 
1251
  - Total Steps: {len(steps_completed)}
1252
  - Successful: {success_count}
1253
  - Executor: {executor_used}
1254
+ {url_section}
1255
  ๐Ÿ’พ **Would you like to save this workflow for future use?**
1256
  Type **'save workflow'** or **'yes'** to save it.
1257