Skip to content

feat: save pipeline config snapshot in async task execution and exposure in status API#35

Merged
MOLYHECI merged 1 commit intoOpenDCAI:backendfrom
duanchy3:backend
Jan 6, 2026
Merged

feat: save pipeline config snapshot in async task execution and exposure in status API#35
MOLYHECI merged 1 commit intoOpenDCAI:backendfrom
duanchy3:backend

Conversation

@duanchy3
Copy link
Copy Markdown
Contributor

@duanchy3 duanchy3 commented Jan 6, 2026

…ure in status API

Copilot AI review requested due to automatic review settings January 6, 2026 07:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances task execution tracking by exposing pipeline configuration snapshots in the status API. The changes ensure that pipeline_id and pipeline_config are captured at execution time and made available through status and result queries.

Key Changes:

  • Added pipeline_id and pipeline_config fields to async execution initialization
  • Exposed pipeline_id and pipeline_config in get_execution_status API response
  • Exposed pipeline_id and pipeline_config in get_execution_result API response

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +264 to +265
"pipeline_id": execution_data.get("pipeline_id"),
"pipeline_config": execution_data.get("pipeline_config"),
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newly added pipeline_id and pipeline_config fields in the status response lack test coverage. Consider adding test cases to verify these fields are correctly returned by get_execution_status, especially when they are present or absent in the execution data.

Copilot uses AI. Check for mistakes.
Comment on lines +377 to +378
"pipeline_id": execution_data.get("pipeline_id"),
"pipeline_config": execution_data.get("pipeline_config"),
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newly added pipeline_id and pipeline_config fields in the result response lack test coverage. Consider adding test cases to verify these fields are correctly returned by get_execution_result, especially when they are present or absent in the execution data.

Copilot uses AI. Check for mistakes.
Comment on lines +446 to +447
"pipeline_id": pipeline_id,
"pipeline_config": pipeline_config,
Copy link

Copilot AI Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The newly added pipeline_id and pipeline_config fields in the initial_result lack test coverage. Consider adding test cases to verify these fields are correctly stored when starting async execution, especially to confirm they match the input parameters.

Copilot uses AI. Check for mistakes.
@MOLYHECI
Copy link
Copy Markdown
Collaborator

MOLYHECI commented Jan 6, 2026

LGTM. Thanks!

@MOLYHECI MOLYHECI merged commit adb23d4 into OpenDCAI:backend Jan 6, 2026
6 checks passed
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.

3 participants