feat: add submission hooks support for job bundles#986
Draft
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
Draft
feat: add submission hooks support for job bundles#986rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
rickrams wants to merge 1 commit intoaws-deadline:mainlinefrom
Conversation
8955f32 to
175d566
Compare
leongdl
reviewed
Feb 2, 2026
c3b1d1b to
a5622db
Compare
Adds support for pre-submission and post-submission hooks via hooks.yaml/hooks.json in job bundles. Hooks can validate configurations, discover assets, modify parameters, and integrate with external systems. - Pre-submission hooks run before hashing/uploading and can modify the submission - Post-submission hooks run after job creation for notifications/integrations - Security: hooks disabled by default (settings.allow_hooks), confirmation prompt - Works with both CLI and GUI submission workflows Signed-off-by: rickrams <rickrams@users.noreply.github.com>
a5622db to
6325d37
Compare
|
Contributor
Author
|
Updated to allow for two independent hook sources, each with its own security setting: Hook Sources
Security ModelBoth sources are disabled by default (opt-in). When enabled, users see a confirmation prompt showing exactly which commands will run before execution (unless Studio Deployment Example# IT configures workstations once
deadline config set settings.allow_environment_hooks true
# Per-application launcher scripts set the hooks location
# blender_launcher.sh
export DEADLINE_HOOKS_DIR=/studio/pipeline/hooks/blender
exec blender "$@"
# maya_launcher.sh
export DEADLINE_HOOKS_DIR=/studio/pipeline/hooks/maya
exec maya "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Add configurable pre-submission and post-submission hooks that execute during job submission workflow. Hooks are defined in hooks.yaml or hooks.json in the job bundle directory.
Features:
Documentation:
Testing:
What was the problem/requirement? (What/Why)
Being able to execute code before and after job submission. Use cases like setting variables based on the environment or doing introspection for assets for job attachment.
What was the solution? (How)
A new job bundle file called "hooks" that species a command and arguments (similar to how open job description templates do)
What is the impact of this change?
How was this change tested?
I manually tested both CLI and gui submit with a custom script that inspect vrscene files and finds and adds additional job attaachments.
See DEVELOPMENT.md for information on running tests.
downloadorasset_syncmodules? If so, then it is highly recommendedthat you ensure that the docker-based unit tests pass.
Was this change documented?
Does this PR introduce new dependencies? No
This library is designed to be integrated into third-party applications that have bespoke and customized deployment environments. Adding dependencies will increase the chance of library version conflicts and incompatabilities. Please evaluate the addition of new dependencies. See the Dependencies section of DEVELOPMENT.md for more details.
Is this a breaking change? No
A breaking change is one that modifies a public contract in a way that is not backwards compatible. See the
Public Contracts section
of the DEVELOPMENT.md for more information on the public contracts.
If so, then please describe the changes that users of this package must make to update their scripts, or Python applications.
Does this change impact security? Potentially. It executes scripts that could be malicous or potentially misused or hijacked.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.