Skip to content

Rr 173 vm deprecation#224

Merged
ryanraaschCDC merged 8 commits into
mainfrom
rr-173-vm-deprecation
Jul 7, 2026
Merged

Rr 173 vm deprecation#224
ryanraaschCDC merged 8 commits into
mainfrom
rr-173-vm-deprecation

Conversation

@ryanraaschCDC

Copy link
Copy Markdown
Collaborator

No description provided.

@ryanraaschCDC ryanraaschCDC requested a review from Copilot July 6, 2026 20:15
@ryanraaschCDC ryanraaschCDC self-assigned this Jul 6, 2026
@ryanraaschCDC ryanraaschCDC linked an issue Jul 6, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a VM deprecation check for Azure Batch pools (to warn when a pool is using an older VM version), and updates job-state handling in task monitoring.

Changes:

  • Updated monitor_tasks() to read job state directly from the job object instead of via as_dict().
  • Added check_if_pool_vm_deprecated() helper to detect deprecated pool VM versions.
  • Hooked the deprecation check into CloudClient.create_job() to warn users when creating jobs on deprecated pools.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
cfa/cloudops/batch_helpers.py Adjusts job state polling and adds a helper to detect deprecated pool VM versions.
cfa/cloudops/_cloudclient.py Calls the new deprecation helper during job creation to surface a user-facing warning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cfa/cloudops/batch_helpers.py Outdated
Comment thread cfa/cloudops/batch_helpers.py Outdated
Comment thread cfa/cloudops/batch_helpers.py Outdated
Comment thread cfa/cloudops/batch_helpers.py Outdated
ryanraaschCDC and others added 5 commits July 6, 2026 13:19
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ryanraaschCDC ryanraaschCDC requested a review from xop5 July 6, 2026 20:46
@ryanraaschCDC ryanraaschCDC marked this pull request as ready for review July 7, 2026 15:10
@ryanraaschCDC ryanraaschCDC merged commit 070cc36 into main Jul 7, 2026
3 checks passed
@ryanraaschCDC ryanraaschCDC deleted the rr-173-vm-deprecation branch July 7, 2026 15:47
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.

add vm deprecation warning

4 participants