Skip to content

feat: Add license limit enforcement sample using submission hooks - #219

Merged
jericht merged 2 commits into
aws-deadline:mainlinefrom
rickrams:feat/license-limit-submission-hook
May 25, 2026
Merged

jericht merged 2 commits into
aws-deadline:mainlinefrom
rickrams:feat/license-limit-submission-hook

Conversation

@rickrams

Copy link
Copy Markdown
Contributor

Add a submission hook sample that demonstrates how to enforce fixed license limits (e.g., V-Ray) using Deadline Cloud's Limits feature. The pre-submission hook automatically injects hostRequirements amounts into job templates so artists don't need to configure limits manually.

Includes:

  • Pre-submission hook script (inject_license_limit.py)
  • Hook configuration (hooks.yaml)
  • License limits config (license_limits.json)
  • Complete setup guide with troubleshooting

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

The Deadline Cloud limits feature requires submitted jobs specify the limit they'll use, something that can be cumbersome and easy for artists to forget.

What was the solution? (How)

A pre-submission system hook modifies the template before submission to include it, this modification could be extended to be contextual to the template itself and other factors.

Using this approach requires a release of Deadline client with aws-deadline/deadline-cloud#1162 included and also if using an integrated submitter a release of that submitter with the hooks feature and that fix included.

How was this change tested?

Submitted a variety of jobs and monitored limits usage and concurrency.

Was this change documented?

Yes


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

Add a submission hook sample that demonstrates how to enforce fixed
license limits (e.g., V-Ray) using Deadline Cloud's Limits feature.
The pre-submission hook automatically injects hostRequirements amounts
into job templates so artists don't need to configure limits manually.

Includes:
- Pre-submission hook script (inject_license_limit.py)
- Hook configuration (hooks.yaml)
- License limits config (license_limits.json)
- Complete setup guide with troubleshooting

Signed-off-by: rickrams <rickrams@users.noreply.github.com>
@rickrams
rickrams requested a review from a team May 13, 2026 18:24
@github-actions github-actions Bot added the waiting-on-maintainers Waiting on the maintainers to review. label May 13, 2026
@jericht
jericht merged commit f90cf46 into aws-deadline:mainline May 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-maintainers Waiting on the maintainers to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants