Skip to content

Remove cleanup after bounce expire#975

Merged
ssalinas merged 4 commits into
masterfrom
bounce_expire
Jun 7, 2016
Merged

Remove cleanup after bounce expire#975
ssalinas merged 4 commits into
masterfrom
bounce_expire

Conversation

@ssalinas
Copy link
Copy Markdown
Contributor

@tpetr initially did this so that it /fixes #972 . This will:

  • check that no other task cleanups are present (i.e. if task should still be in cleaning state)
  • if not, find the task history updates and if the last one is TASK_CLEANING delete it
  • re-fire an event for the previous state the task was in (most likely running)
  • make sure a pending request is put in the queue to take care of any other pending tasks or launched tasks that might need to be taken care of

In addition I also did the same thing for the case where a decommissioned slave is reactivated (handled by SingularityCleaner), since right now reactivating the slave still requires all of the cleaning tasks to be properly cleaned and repalced, even though their slave is no longer deocmmissioning.

Thoughts on re-firing an event for the previous state vs creating a new event type for history updates that are deleted?

@ssalinas ssalinas modified the milestone: 0.4.12 Apr 1, 2016
@ssalinas ssalinas modified the milestones: 0.5.0, 0.6.0 Apr 5, 2016
@ssalinas
Copy link
Copy Markdown
Contributor Author

@tpetr are you cool with merging this?

@ssalinas
Copy link
Copy Markdown
Contributor Author

ssalinas commented May 4, 2016

Found one thing here, seems that we can accidentally reuse instance number in this case. IF a task is cleaning we will currently reuse that instance number. If it then comes back out of cleaning, we will have a duplicate instance number. Not sure if that's an issue or not, will revisit this

@ssalinas ssalinas changed the title Remove cleanup after bounce expire and slave reactivation Remove cleanup after bounce expire May 9, 2016
@ssalinas
Copy link
Copy Markdown
Contributor Author

ssalinas commented May 9, 2016

updated to not worry about the decommission/reactivation for now, causes more headaches than it's worth at the moment. Bounce expire was the real issue to start with anyways.

@ssalinas ssalinas modified the milestones: 0.6.0, 0.8.0 May 13, 2016
@ssalinas
Copy link
Copy Markdown
Contributor Author

ssalinas commented Jun 7, 2016

@tpetr are you good with merging this one? causes a rather annoying problem for anyone without the change when canceling a bounce

@tpetr
Copy link
Copy Markdown
Contributor

tpetr commented Jun 7, 2016

LGTM

@ssalinas ssalinas merged commit 7cc31cb into master Jun 7, 2016
@ssalinas ssalinas deleted the bounce_expire branch June 7, 2016 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task bounce expires but no new task scheduled

2 participants