workflow timeline in reversed order (#1501)

This commit is contained in:
Shuchang Zheng
2025-01-06 07:30:58 -08:00
committed by GitHub
parent 6b4b52a6c4
commit c0bf6387c3

View File

@@ -763,7 +763,7 @@ async def get_workflow_run_timeline(
organization_id=current_org.organization_id,
)
workflow_run_block_timeline.extend(observer_thought_timeline)
workflow_run_block_timeline.sort(key=lambda x: x.created_at)
workflow_run_block_timeline.sort(key=lambda x: x.created_at, reverse=True)
return workflow_run_block_timeline