You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "dill21yu (via GitHub)" <gi...@apache.org> on 2026/03/06 01:50:35 UTC
[I] [Bug][API]Cross-workflow circular dependency not detected during creation/update [dolphinscheduler]
dill21yu opened a new issue, #18025:
URL: https://github.com/apache/dolphinscheduler/issues/18025
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
The `graphHasCycle()` method in the API layer only detects cycles within a single workflow, but fails to detect cross-workflow circular dependencies.
<img width="1194" height="690" alt="Image" src="https://github.com/user-attachments/assets/9a532e75-27f1-4a0d-96e3-2f2b73a72a54" />
### What you expected to happen
When creating or updating a workflow, the system should:
1. Query the `workflow_task_lineage` table to get all cross-workflow dependencies
2. Build a complete DAG graph including both internal and external dependencies
3. Detect circular dependencies using DFS before saving
4. Return a clear error message to the user indicating which workflows/tasks form the cycle
### How to reproduce
Query the `workflow_task_lineage` table and use DFS recursive detection to identify cross-workflow circular dependencies.
### Anything else
_No response_
### Version
dev
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][API]Cross-workflow circular dependency not detected during creation/update [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #18025:
URL: https://github.com/apache/dolphinscheduler/issues/18025#issuecomment-4009072991
This is not a bug. Cross-workflow verification will not be performed at present, because we allow workflow cross-dependency, and DAG only exists in the same workflow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][API]Cross-workflow circular dependency not detected during creation/update [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18025:
URL: https://github.com/apache/dolphinscheduler/issues/18025#issuecomment-4189846359
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][API]Cross-workflow circular dependency not detected during creation/update [dolphinscheduler]
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS closed issue #18025: [Bug][API]Cross-workflow circular dependency not detected during creation/update
URL: https://github.com/apache/dolphinscheduler/issues/18025
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org