Skip to content

Comments

feat: API pipeline run get has execution summary#97

Open
yuechao-qin wants to merge 1 commit intoycq/api_pipeline_run_list_has_endedfrom
ycq/api_pipeline_run_get_has_ended
Open

feat: API pipeline run get has execution summary#97
yuechao-qin wants to merge 1 commit intoycq/api_pipeline_run_list_has_endedfrom
ycq/api_pipeline_run_get_has_ended

Conversation

@yuechao-qin
Copy link
Collaborator

@yuechao-qin yuechao-qin commented Feb 17, 2026

TL;DR

Added execution statistics to the pipeline run get endpoint (GET /api/pipeline_runs/{id}).

What changed?

  • Enhanced the get method to optionally include execution statistics
  • Added a new parameter include_execution_stats (default: False) to the get method
  • Extracted the execution stats population logic into a new helper method _populate_execution_stats

How to test?

  1. Call the pipeline run get endpoint with include_execution_stats=True
  2. Verify that the response includes execution status statistics and summary
  3. Run the new tests in TestPipelineRunServiceGet class to ensure the functionality works as expected

Run the new test cases in tests/test_api_server_sql.py:

pytest tests/test_api_server_sql.py

Why make this change?

image.png

Copy link
Collaborator Author

yuechao-qin commented Feb 17, 2026

@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_get_has_ended branch from 96dfb6c to 034f57b Compare February 20, 2026 04:28
@yuechao-qin yuechao-qin force-pushed the ycq/api_pipeline_run_list_has_ended branch from 489c797 to 3df5bde Compare February 20, 2026 04:28
@yuechao-qin yuechao-qin requested a review from Ark-kun February 20, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants