-
Notifications
You must be signed in to change notification settings - Fork 14
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
Submit along Extra Info with jobs #53
base: develop
Are you sure you want to change the base?
Conversation
The recent PR #49 introduced the following two fields. Is that an alternative for this PR? |
@MustafaJafar nice. And good question. I suppose it could if the values themselves can be formatted using the context and instance data so that you can pass along additional custom data from the actual instance. Also, I'm not entirely sure how trivial it is to manage
Which may be hard to "mix" with dynamic key values defined during publishing. So I'm not super confident the raw dict nature suits our needs here. But potentially dedicated "Key Value" profiles one could specify with the dynamic formatting for values could very well be how settings for this PR could look. |
At what point of time of the publishing? I think it won't be an issue since the job info collector works at
so, the order of these extra info keys is important. For information, this is how adding additional jobinfo is done, which doesn't support formatting each item with info or context data. ayon-deadline/client/ayon_deadline/plugins/publish/global/collect_jobinfo.py Lines 75 to 76 in 1df52ae
|
def process(self, instance): | ||
|
||
# Transfer some environment variables from current context | ||
job_info = instance.data.setdefault(JOB_EXTRA_INFO_DATA_KEY, {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling it directly job_info
seems weird, I would prefer job_extra_info
which is more descriptive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree!
I don't really see purpose of this collector, I can understand reason for Or should be |
They do use dynamic values as can be seen in the code. In our case, I'm even collecting what "tools" were active at the running time of the submission. See here. I created the PR mostly to discuss what make sense as standardization here - and whether it'd even be possible. For context - this is then what it can look like in Deadline Monitor: I could actually even filter the Tools to only that application (because now also those listed for Maya are shown for example). Anyway, having this data there technically also allows me to filter in Deadline to those things. |
Changelog Description
Submit along Extra Info with jobs.
Additional info
Currently this PR hardcodes some values to pass along in a plug-in but the idea is that this showcases that any plug-in could "add" this data for the job submissions to get them. So that a studio could either implement their own addon to provide the data they want to add or we set-up a plug-in from which you can define some dynamic extra info values from studio/project settings.
Testing notes: