dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[DSIP-107] Add separate workflow instance logs for UI viewing, similar to task logs.

Open njnu-seafish opened this issue 7 months ago • 4 comments

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: 企业微信截图_17750360711830

Dedicated log files for workflow instances on the Master service: 企业微信截图_17750363662591

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

njnu-seafish avatar Apr 02 '26 15:04 njnu-seafish

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud

sonarqubecloud[bot] avatar Apr 25 '26 03:04 sonarqubecloud[bot]

@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.

企业微信截图_17787572661562

企业微信截图_17787573849626

njnu-seafish avatar May 14 '26 12:05 njnu-seafish

@ruanwenjun @SbloodyS Could you please help review the solution and the code? Thanks. Here are the main updates I've implemented:

  1. Master: Added a standalone log file specifically for workflow instances.
  2. ApiServer: Implemented both the backend endpoints and the frontend UI to support querying and downloading workflow logs."
  3. 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: screenshot_1779361671483

screenshot_1779361763966

njnu-seafish avatar May 21 '26 12:05 njnu-seafish

@ruanwenjun Could you please take a look at this implementation plan when you have a moment? Thanks so much!

njnu-seafish avatar Jun 12 '26 06:06 njnu-seafish