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

fix: BYO Deadline now looks specifically for resource env vars. #128

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

erico-aws
Copy link
Contributor

What was the problem/requirement? (What/Why)

The fields of DeadlineResources don't match the kwargs in it's constructor. Either, you don't provide FARM, FLEET and QUEUE and the required field validation fails OR you do provide them and the constructor for DeadlineResources fails because it doesn't recognize a keyword named farm.

What was the solution? (How)

We're going to leave validation of required fields to the dataclass itself. Pull the specific env vars we want out for specifying the resources.

What is the impact of this change?

Unblocks BYO Deadline testing workflows.

How was this change tested?

I have an existing Farm, Fleet and Queue. I was able to use these fixtures to run tests against them. My account is limited to on 2 Farms (which I already have) if this didn't work I would have gotten errors making a new Farm.

Was this change documented?

No.

Is this a breaking change?

No.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@erico-aws erico-aws requested a review from a team as a code owner July 8, 2024 19:07
@erico-aws erico-aws merged commit 852fef3 into aws-deadline:mainline Jul 11, 2024
12 checks passed
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