Skip to content

Add a command to migrate old job business models to licensed - #2435

Open
Alberto Vilches (avilches) wants to merge 27 commits into
mainfrom
migrate-job-business-model
Open

Add a command to migrate old job business models to licensed#2435
Alberto Vilches (avilches) wants to merge 27 commits into
mainfrom
migrate-job-business-model

Conversation

@avilches

@avilches Alberto Vilches (avilches) commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds migrate_job_business_model, the management command that rewrites the old SUBSIDIZED business model of existing jobs to LICENSED. It runs from the internal deployment repo as a Kubernetes Job through the existing qiskit-serverless-migrations chart, the same way the earlier migrate_old_job_* commands do.

Set as draft because it needs the LICENSED field from #2427, so it targets that branch instead of main until it merges.

Details and comments

--dry-run only reports how many rows still hold SUBSIDIZED, without writing. Safe to interrupt and rerun, since each run only touches rows that still hold the old name.

Once every job row is migrated, a follow-up cleanup PR removes core/domain/subsidized_license_mapping.py and its two call sites, drops SUBSIDIZED from BusinessModel, and turns BILLING_NAMES back into an identity map.

Base automatically changed from business-model-licensed to main September 2, 2026 20:47

@riley2012 Tova Roth (riley2012) 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.

LGTM!

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.

3 participants