-
Notifications
You must be signed in to change notification settings - Fork 262
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
Added StealAppLease API and HTTP API #1769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a tiny comment, thanks!
/// <summary> | ||
/// Steals AppLease if this app doesn't already have it. To use this, must be using the AppLease feature by setting UseAppLease to true in host.json. | ||
/// </summary> | ||
/// <returns>A task that completes when the steal app message is written to storage.</returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for clarity: is writing the steal message to storage the same as completing the process of stealing the lease, or is it just a starting step in that process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should just be the the starting step. We may want to clarify the operation to be "InitiateStealAppLeaseOperationAsync()`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to be explicit in the documentation saying that this kicks off the process to cause this application to steal the app lease.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so long as the CI goes green!
Added StealAppLease API and HTTP API to support app lease swap without turning off a function instance.
Extension side work for this issue: #1503
Pull request checklist
pending_docs.md
release_notes.md