Skip to content

process_submitted_jobs should create InstanceModel before provisioning instances #3665

@r4victor

Description

@r4victor

process_submitted_jobs creates InstanceModel (ComputeGroupModel) models only after provisioning succeeds. This is problematic:

The solution is to add a process_submitted_jobs step that creates and commits InstanceModel (ComputeGroupModel) "reserved" models. Then provision against those models and either promote them or delete them. Introduce InstanceModel.provisioning_job_id that means that the instance is being provisioned by process_submitted_jobs and ignore it in the instance background task.

Metadata

Metadata

Assignees

Labels

enhancementA non-feature improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions