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

fix: lastScaledAt not updated during autoscaling down #2323

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Jan 12, 2025

Explain what this PR does.

@whynowy whynowy requested a review from vigith as a code owner January 12, 2025 19:15
@@ -300,7 +301,6 @@ func (r *vertexReconciler) orchestratePods(ctx context.Context, vertex *dfv1.Ver
}
}

currentReplicas := int(vertex.Status.Replicas)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the place to set lastScaledAt . Should not use current vertex.Status.Replicas as it has been updated above.

Copy link

codecov bot commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.27%. Comparing base (cd1fcb4) to head (ca2967c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2323      +/-   ##
==========================================
+ Coverage   67.16%   67.27%   +0.10%     
==========================================
  Files         351      351              
  Lines       45273    45269       -4     
==========================================
+ Hits        30408    30453      +45     
+ Misses      13786    13744      -42     
+ Partials     1079     1072       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@whynowy whynowy changed the title fix: lastScaledAt not updated during autoscaling fix: lastScaledAt not updated during autoscaling down Jan 12, 2025
@whynowy whynowy merged commit ade70d8 into numaproj:main Jan 12, 2025
25 checks passed
@whynowy whynowy deleted the aff branch January 12, 2025 22:29
SaniyaKalamkar pushed a commit to SaniyaKalamkar/numaflow that referenced this pull request Jan 19, 2025
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.

2 participants