Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Disable pauses for auto pause enabled updates #216

Merged
merged 2 commits into from
May 20, 2021

Conversation

zorro786
Copy link
Collaborator

@zorro786 zorro786 commented May 19, 2021

Add IT

Signed-off-by: Abdul Qadeer aqadeer@paypal.com

Description:

This PR prevents pauses on auto pause enabled job updates.

Testing Done:

Ran UTs - all passed
E2E tests (failures unrelated to this commit)

Add IT

Signed-off-by: Abdul Qadeer <aqadeer@paypal.com>
Copy link
Contributor

@ridv ridv left a comment

Choose a reason for hiding this comment

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

LGTM minus one minor nit

.getInstructions()
.getSettings()
.getUpdateStrategy());
if (isAutoPauseEnabled && instancesSeen.containsKey(key)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we check if the instancesSeen contains the key, we can know the update started allowing us to pause for a brief time before the update starts if we do this check. It's probably overkill to do that in this case. I think in this case we can just check to see if it's auto pause enabled by itself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah on second look it seems redundant. Fixed.

Signed-off-by: Abdul Qadeer <quadeer.leo@gmail.com>
Copy link
Contributor

@ridv ridv left a comment

Choose a reason for hiding this comment

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

:shipit:

@ridv ridv merged commit c64f72f into aurora-scheduler:master May 20, 2021
@zorro786 zorro786 deleted the fix-2576 branch May 20, 2021 18:30
@lenhattan86 lenhattan86 added this to the 0.24.2 milestone Jun 17, 2021
zorro786 added a commit to zorro786/aurora that referenced this pull request Jul 9, 2021
ridv pushed a commit that referenced this pull request Jul 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants