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: improve error messages when farm or queue ID not defined #148

Merged
merged 1 commit into from
May 10, 2024

Conversation

joel-wong-aws
Copy link
Contributor

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

When first submitting a job to AWS Deadline Cloud using its render node, I received unexpected error messages with an Access Denied error. These were related to missing default farms and queues.

image

What was the solution? (How)

Added a check whether the farm and queue are defined before calling GetQueue in the submitter.

image

image

What is the impact of this change?

Easier onboarding for new customers

How was this change tested?

  1. Created a simple scene with geometry, light, camera
  2. Connected a Karma ROP to the Deadline Cloud ROP
  3. Clicked submit (without adding settings, or after clearing the default farm and queue with deadline config set defaults.farm_id "" and deadline config set defaults.queue_id "")

Was this change documented?

No, not required

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.

@joel-wong-aws joel-wong-aws requested a review from a team as a code owner May 8, 2024 23:52
Signed-off-by: Joel Wong <127782171+joel-wong-aws@users.noreply.github.com>
Copy link
Contributor

@AWS-Samuel AWS-Samuel left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this bug! The changes here look good, but it looks like we could add the same logic to

  • settings_callback
  • login_callback
  • update_queue_parameters_callback

in src/deadline/houdini_submitter/python/deadline_cloud_for_houdini/submitter.py

Which would allow us to resolve #117

Do you mind adding the checks for unset farm/queue there too?

@AWS-Samuel
Copy link
Contributor

Thanks for fixing this bug! The changes here look good, but it looks like we could add the same logic to

  • settings_callback
  • login_callback
  • update_queue_parameters_callback

in src/deadline/houdini_submitter/python/deadline_cloud_for_houdini/submitter.py

Which would allow us to resolve #117

Do you mind adding the checks for unset farm/queue there too?

After syncing offline, we've agreed to tackle these other places in a future PR

Ship it :shipit:

@AWS-Samuel AWS-Samuel merged commit 48ee027 into aws-deadline:mainline May 10, 2024
15 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