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

Re-working Status Update Queue Message Handling #2700

Merged
merged 19 commits into from
Oct 6, 2022

Conversation

damoodamoo
Copy link
Member

@damoodamoo damoodamoo commented Oct 4, 2022

Resolves #2647

What's changed:

  • Sessions enabled on the status update queue - will re-create the queue on tre-deploy. This will enforce ordering of messages, using the operation id as the session id.
  • Changed the queue subscription mechanism to closely match the RP, and the doc samples.
  • Moved the queue subscription from a @repeat-every to a dedicated background thread, running continuously.

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Unit Test Results

515 tests   515 ✔️  12s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit ebc4cb0.

♻️ This comment has been updated with latest results.

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3181228287 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

Copy link
Contributor

@tanya-borisova tanya-borisova left a comment

Choose a reason for hiding this comment

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

Does adding session_id require any kind of migration plan for the queue?

@damoodamoo
Copy link
Member Author

Does adding session_id require any kind of migration plan for the queue?

The queue will just recreate. I've called it out in the changelog, but there's no 'migration' possible really. just a case of making sure you deploy when the TRE is idle.

@damoodamoo
Copy link
Member Author

/test-destroy-env

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying PR test environment (RG: rg-treca83a86f)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3181582475)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying branch test environment (RG: rg-tre5a42259b)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3181582475)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Branch test environment destroy complete (RG: rg-tre5a42259b)

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3181620293 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

PR test environment destroy complete (RG: rg-treca83a86f)

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3181777758 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

1 similar comment
@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3181777758 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

@damoodamoo
Copy link
Member Author

/test-destroy-env

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying PR test environment (RG: rg-treca83a86f)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3183288912)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying branch test environment (RG: rg-tre5a42259b)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3183288912)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Branch test environment destroy complete (RG: rg-tre5a42259b)

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3183394706 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

PR test environment destroy complete (RG: rg-treca83a86f)

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3184407682 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

PR test environment destroy complete (RG: rg-treca83a86f)

@damoodamoo
Copy link
Member Author

/test-destroy-env

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying branch test environment (RG: rg-tre5a42259b)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3184813673)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Branch test environment destroy complete (RG: rg-tre5a42259b)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

Destroying PR test environment (RG: rg-treca83a86f)... (run: https://github.com/microsoft/AzureTRE/actions/runs/3184813673)

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

PR test environment destroy complete (RG: rg-treca83a86f)

@damoodamoo
Copy link
Member Author

/test-extended

@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/3184821443 (with refid ca83a86f)

(in response to this comment from @damoodamoo)

Copy link
Contributor

@tanya-borisova tanya-borisova left a comment

Choose a reason for hiding this comment

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

Looks good, just had one question and I haven't read part of the diff under the assumption that it hadn't changed

api_app/services/health_checker.py Show resolved Hide resolved
api_app/service_bus/deployment_status_update.py Outdated Show resolved Hide resolved
api_app/service_bus/deployment_status_update.py Outdated Show resolved Hide resolved
api_app/service_bus/deployment_status_update.py Outdated Show resolved Hide resolved
api_app/service_bus/deployment_status_update.py Outdated Show resolved Hide resolved
api_app/service_bus/deployment_status_update.py Outdated Show resolved Hide resolved
@damoodamoo
Copy link
Member Author

/test-force-approve

extended tests have previously run successfully.

@damoodamoo damoodamoo enabled auto-merge (squash) October 6, 2022 08:38
@github-actions
Copy link

github-actions bot commented Oct 6, 2022

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 9cfbdf2)

(in response to this comment from @damoodamoo)

@damoodamoo
Copy link
Member Author

/test-force-approve

@github-actions
Copy link

github-actions bot commented Oct 6, 2022

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit ebc4cb0)

(in response to this comment from @damoodamoo)

@damoodamoo damoodamoo merged commit dae21ed into main Oct 6, 2022
@damoodamoo damoodamoo deleted the damoo/2469-sb-out-of-order branch October 6, 2022 09: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.

Resource hangs with "pipeline running" during update
2 participants