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

add a stop operator to emr serverless #30720

Merged
merged 6 commits into from
Apr 19, 2023
Merged

Conversation

vandonr-amz
Copy link
Contributor

@vandonr-amz vandonr-amz commented Apr 18, 2023

EMR serverless currently has a delete operator that stops the app and deletes it, but there is no operator to just stop an app.

Since the delete operator contains a stop step, to avoid duplicating the code, I made it inherit from the new stop operator.
Usually, composition is preferred over inheritance, but in this case, since they are operators, I cannot really create an operator inside another because an operator is an object that is more complex than just the action it executes. Creating an operator inside an other operator creates new tasks in the DAG, requires a different task_id, etc.

tagging for visibility: @vincbeck @syedahsn @ferruzzi

vandonr-amz and others added 2 commits April 18, 2023 14:27
Co-authored-by: Vincent <[email protected]>
Co-authored-by: Vincent <[email protected]>
Copy link
Contributor

@ferruzzi ferruzzi left a comment

Choose a reason for hiding this comment

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

Nice addition, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants