Skip to content

Conversation

@justonedev1
Copy link
Collaborator

@justonedev1 justonedev1 commented May 27, 2025

I did 3 major changes:

  • introduce "oneRound" variables in deployment retry in tasks/manager.go so we can control state of affairs after one retry round.
  • removed 2 checks if len(descriptorsUndeployable) == 0 because it is possible to continue even if you have some "undeployable" tasks. More than that, it is desirable to do so, as right now it was possible that some tasks are run multiple times resulting in "zombie" state forgotten on machine described by warning attempted status update of task not in roster. These tasks would be deployed multiple times and only the most recent deployment would be deleted leaving others behind. So I switched the logic around, we can try to deploy even if some of the tasks were declared as "undeployable".
  • adding tasks that were successfully deployed immediately to the roster so we can get updates from them.

NOTE: removing two ifs caused some weird looking changes in the diff, but it is just removing one tab depth of code, so the diff is a bit muddy.

@justonedev1 justonedev1 requested a review from knopers8 as a code owner May 27, 2025 05:38
knopers8
knopers8 previously approved these changes May 28, 2025
Copy link
Collaborator

@knopers8 knopers8 left a comment

Choose a reason for hiding this comment

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

Thanks, it seems good, please consider my two pedantic comments, but in any case it is good to go as it is.

@justonedev1 justonedev1 requested a review from knopers8 May 28, 2025 09:45
@knopers8 knopers8 merged commit 8ab57da into master May 28, 2025
4 checks passed
@knopers8 knopers8 deleted the OCTRL-1010 branch May 28, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants