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

Added StealAppLease API and HTTP API #1769

Merged
merged 12 commits into from
May 28, 2021
Merged

Added StealAppLease API and HTTP API #1769

merged 12 commits into from
May 28, 2021

Conversation

amdeel
Copy link
Contributor

@amdeel amdeel commented Apr 1, 2021

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

  • My changes do not require documentation changes
    • Otherwise: Documentation PR is ready to merge and referenced in pending_docs.md
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

Copy link
Contributor

@davidmrdavid davidmrdavid left a 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>
Copy link
Contributor

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?

Copy link
Contributor

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()`.

Copy link
Contributor

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.

@davidmrdavid davidmrdavid self-requested a review May 5, 2021 19:49
Copy link
Contributor

@davidmrdavid davidmrdavid left a 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!

@amdeel amdeel merged commit 6f811dd into dev May 28, 2021
@amdeel amdeel deleted the AddSwapApi branch May 28, 2021 02:12
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.

None yet

3 participants