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:
Jakub Jezek 2024-05-24 15:28:02 +02:00
parent 8eb5c2a99e
commit da4da46c9c
No known key found for this signature in database
GPG key ID: 06DBD609ADF27FD9

View file

@ -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