[DSIP-107] Add separate workflow instance logs for UI viewing, similar to task logs.
Was this PR generated or assisted by AI?
NO
Purpose of the pull request
This is an implementation scheme for separating workflow logs. close #18129
Brief change log
Add separate workflow instance logs for UI viewing, similar to task logs.
Verify this pull request
I have already tested and verified this solution in my local environment.
The log_path field in the t_ds_workflow_instance table:
Dedicated log files for workflow instances on the Master service:
Pull Request Notice
If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md
@ruanwenjun @SbloodyS Could you please help review the solution and the code?
I sincerely apologize for the delay on this PR. I've been caught up with some urgent company matters recently and haven't had the time to work on it. I spent some time optimizing it tonight, and I've verified through actual testing that it works as expected.
@ruanwenjun @SbloodyS Could you please help review the solution and the code? Thanks. Here are the main updates I've implemented:
- Master: Added a standalone log file specifically for workflow instances.
- ApiServer: Implemented both the backend endpoints and the frontend UI to support querying and downloading workflow logs."
- Added logic to delete workflow instance logs when deleting a workflow instance.
This has been tested and verified in a real-world environment. Please see the UI below:
@ruanwenjun Could you please take a look at this implementation plan when you have a moment? Thanks so much!
