Skip to content

Conversation

@agrare
Copy link
Member

@agrare agrare commented Apr 10, 2024

Adds a EmbeddedTerraform::AutomationManager::Stack which is an OrchestrationStack subclass
Adds EmbeddedTerraform::AutomationManager::Template#run which is called by EmbeddedTerraform::AutomationManager::Stack.create_stack and creates&starts a Job state-machine
Adds EmbeddedTerraform::AutomationManager::Job which is a ::Job state-machine and is responsible for running and polling for completion any terraform runner tasks.

@agrare agrare added enhancement New feature or request wip labels Apr 11, 2024
@agrare agrare force-pushed the add_orchestration_stack_and_job branch 4 times, most recently from 69b1828 to 12d1b54 Compare April 18, 2024 15:51
@agrare agrare changed the title [WIP] Add EmbeddedTerraform Stack and Job for Catalog Support [WIP] Add EmbeddedTerraform Stack and Job Apr 18, 2024
@agrare agrare force-pushed the add_orchestration_stack_and_job branch 2 times, most recently from e87c25a to c1b4713 Compare April 22, 2024 13:46
@agrare agrare changed the title [WIP] Add EmbeddedTerraform Stack and Job Add EmbeddedTerraform Stack and Job Apr 24, 2024
@agrare agrare removed the wip label Apr 24, 2024
@agrare agrare force-pushed the add_orchestration_stack_and_job branch from c1b4713 to 8dcd5f0 Compare April 24, 2024 16:46
@agrare agrare requested a review from jrafanie April 24, 2024 17:02
@agrare
Copy link
Member Author

agrare commented Apr 24, 2024

Okay @jrafanie this is ready for review

end

def poll_interval
options.fetch(:poll_interval, 1.minute).to_i
Copy link
Member

Choose a reason for hiding this comment

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

1 minute seems like a long time. How long are we expecting short and long templates to take to run? Would 30 seconds be better?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably a good question for @putmanoj

Copy link
Member

@jrafanie jrafanie 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 to me, we can change that poll interval in a followup.

@jrafanie
Copy link
Member

@putmanoj I think this reworks some of the POC code you had around workflows, I'm merging today. Let me know if you need help getting your workflows branch working with this.

@jrafanie jrafanie self-assigned this Apr 25, 2024
@jrafanie jrafanie merged commit 5a83636 into ManageIQ:master Apr 25, 2024
@agrare agrare deleted the add_orchestration_stack_and_job branch April 25, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants