Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Cloud Data Flow should set spring.cloud.task.name with the label or registered name #5480

Open
corneil opened this issue Sep 23, 2023 · 1 comment
Labels
type/bug Is a bug report
Milestone

Comments

@corneil
Copy link
Contributor

corneil commented Sep 23, 2023

Problem description:
When a task application is launched while another task with the same internal value for spring.cloud.task.name an error occurs where the application reports that it is already running.

Solution description:
By setting the property spring.cloud.task.name to the registered name or the label name or the full ctr name this can be avoided.

Added Context:
We should consider if it is desired for the exact same application to be running at the same time in which case we should check if one is running and prompt the user for a unique name or in the case of ctr generate a unique name buy appending a time stamp to the value we set on spring.cloud.task.name

@corneil corneil added this to the 2.11.1 milestone Sep 23, 2023
@cppwfs
Copy link
Contributor

cppwfs commented Sep 23, 2023

Interesting case. For the case when using the same application in the DSL, each app in the definition will get a unique label. i.e. T1: timestamp && T2:timestamp

@onobc onobc added the type/bug Is a bug report label Oct 3, 2023
@onobc onobc modified the milestones: 2.11.1, 2.11.x Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Is a bug report
Projects
None yet
Development

No branches or pull requests

3 participants