Skip to content

feat(glue): add ExecutionClass for FLEX#26203

Merged
mergify[bot] merged 4 commits intoaws:mainfrom
go-to-k:feat/flex-execution-class
Jul 3, 2023
Merged

feat(glue): add ExecutionClass for FLEX#26203
mergify[bot] merged 4 commits intoaws:mainfrom
go-to-k:feat/flex-execution-class

Conversation

@go-to-k
Copy link
Copy Markdown
Contributor

@go-to-k go-to-k commented Jul 3, 2023

This PR adds ExecutionClass for Glue job's L2 construct. This allows you to specify FLEX option.

Closes #22224


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 3, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team July 3, 2023 12:33
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 valued-contributor [Pilot] contributed between 6-12 PRs to the CDK labels Jul 3, 2023
Comment on lines +711 to +719
if (executable.type !== JobType.ETL) {
throw new Error('FLEX ExecutionClass is only available for JobType.ETL jobs');
}
if ([GlueVersion.V0_9, GlueVersion.V1_0, GlueVersion.V2_0].includes(executable.glueVersion)) {
throw new Error('FLEX ExecutionClass is only available for GlueVersion 3.0 or later');
}
if (props.workerType && (props.workerType !== WorkerType.G_1X && props.workerType !== WorkerType.G_2X)) {
throw new Error('FLEX ExecutionClass is only available for WorkerType G_1X or G_2X');
}
Copy link
Copy Markdown
Contributor Author

@go-to-k go-to-k Jul 3, 2023

Choose a reason for hiding this comment

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

In this page, the following.

Only jobs with AWS Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

In this page, the following.

Flexible job runs are supported for jobs using AWS Glue version 3.0 or later and G.1X or G.2X worker types.

@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jul 3, 2023
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 3, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 7bf5ce0
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit db923dd into aws:main Jul 3, 2023
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 3, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@go-to-k go-to-k deleted the feat/flex-execution-class branch July 3, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. valued-contributor [Pilot] contributed between 6-12 PRs to the CDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(glue): Flex execution option

3 participants