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

Fix multi proxy race condition #909

Merged
6 commits merged into from
May 22, 2021

Conversation

bmc-msft
Copy link
Contributor

Refactored PR of #904 for easier review. Once #908 is reviewed & merged, this will be easier to review.

@bmc-msft
Copy link
Contributor Author

To compare just the changes for this PR without the changes in #908, use this link:

bmc-msft/onefuzz@proxy-state-update-event...fix-multi-proxy-race-condition

src/api-service/__app__/timer_proxy/__init__.py Outdated Show resolved Hide resolved
@@ -34,6 +41,17 @@ def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa:
)
process_state_updates(proxy)

if proxy.is_outdated():
proxy.outdated = True
Copy link
Member

Choose a reason for hiding this comment

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

In the future, should outdated really be a state, instead of an additional field? So we'd have a ProxyState that would be an extension of VmState.

Co-authored-by: Joe Ranweiler <joe@lemma.co>
@ghost
Copy link

ghost commented May 22, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 18 hours, a condition that will be fulfilled in about 5 hours 56 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit a103985 into microsoft:main May 22, 2021
@bmc-msft bmc-msft deleted the fix-multi-proxy-race-condition branch May 24, 2021 19:27
@ghost ghost locked as resolved and limited conversation to collaborators Jun 24, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants