Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Sep 14, 2023

Avoid duplicate deployment id when multiple tasks launched simultaneously.

Fixes #399

Avoid duplicate deployment id when multiple
tasks launched simultaneously.

Fixes spring-attic#399
@onobc onobc requested a review from corneil September 14, 2023 02:18
Copy link

@corneil corneil Sep 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use System.nanoTime

Avoid duplicate deployment id when multiple
tasks launched simultaneously.

Fixes spring-attic#399
@onobc onobc merged commit b822b26 into spring-attic:main Sep 14, 2023
@onobc onobc deleted the GH-399-add-random-to-deployment-id branch September 14, 2023 15:08
onobc added a commit to onobc/spring-cloud-deployer that referenced this pull request Sep 14, 2023
* Add random number to k8s task deployment id.

Avoid duplicate deployment id when multiple
tasks launched simultaneously.

Fixes spring-attic#399

Co-authored-by: Corneil du Plessis <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate Kubernetes pod ids when tasks are launched at the same time

2 participants