mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Blacklisting plugins for workfile version validation and incrementing
Refactored render submission process to handle plugins differently, bypassing version validation and incrementing by removing specific plugins from the list.
This commit is contained in:
parent
8eb5c2a99e
commit
da4da46c9c
1 changed files with 11 additions and 1 deletions
|
|
@ -189,7 +189,17 @@ def _submit_render_on_farm(node):
|
|||
# Used in pyblish plugins to determine whether to run or not.
|
||||
context.data["render_on_farm"] = True
|
||||
|
||||
context = pyblish.util.publish(context)
|
||||
# Since we need to bypass version validation and incrementing, we need to
|
||||
# remove the plugins from the list that are responsible for these tasks.
|
||||
plugins = pyblish.api.discover()
|
||||
blacklist = ["IncrementScriptVersion", "ValidateVersion"]
|
||||
plugins = [
|
||||
plugin
|
||||
for plugin in plugins
|
||||
if plugin.__name__ not in blacklist
|
||||
]
|
||||
|
||||
context = pyblish.util.publish(context, plugins=plugins)
|
||||
|
||||
error_message = ""
|
||||
success = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue