Skip to content

[Bug] [api-server] Worker group cannot be assigned to a project #17604

@k1z

Description

@k1z

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When I assigned a workgroup to a project, it prompted me: Failed to assign a workgroup to the project

Image Image

api-server log

Image

2025-10-27 15:04:22.235 ERROR [qtp767266208-12279] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[143] - Failed to delete worker groups [[worker-240.118]] for the project [运维].
2025-10-27 15:04:22.235 ERROR [qtp767266208-12279] o.a.d.a.e.ApiExceptionHandler:[40] - org.apache.dolphinscheduler.api.controller.ProjectWorkerGroupController#assignWorkerGroups[3 args] Meet a ServiceException: 给项目分配工作组失败

but, if i create a new project , can assign

2025-10-27 15:05:28.525 INFO [qtp767266208-12436] o.a.d.a.s.i.ProjectServiceImpl:[134] - Project is created and id is :7
2025-10-27 15:05:32.122 INFO [qtp767266208-12308] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[141] - Success to delete worker groups [[default, worker-240.118, Linux-prod, worker-10.10.243.142]] for the project [测试] .
2025-10-27 15:05:32.124 INFO [qtp767266208-12308] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[155] - Success to add worker group [default] for the project [测试] .
2025-10-27 15:05:32.124 INFO [qtp767266208-12308] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[155] - Success to add worker group [worker-240.118] for the project [测试] .
2025-10-27 15:05:32.125 INFO [qtp767266208-12308] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[155] - Success to add worker group [Linux-prod] for the project [测试] .
2025-10-27 15:05:32.125 INFO [qtp767266208-12308] o.a.d.a.s.i.ProjectWorkerGroupRelationServiceImpl:[155] - Success to add worker group [worker-10.10.243.142] for the project [测试] .

What you expected to happen

I have no idea

How to reproduce

assigned a worker group to project,

Anything else

No response

Version

3.3.1

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions