OP-3684 - added default to Integrate Setting to skip render.farm

New publisher requires main family as 'render', so there will be need to skip 'render.farm' which should not be integrated during initial publish. (Currently only affecting AE.)
This commit is contained in:
Petr Kalis 2022-08-03 14:58:36 +02:00
parent 67b9946f20
commit ef60744d9c
2 changed files with 16 additions and 6 deletions

View file

@ -167,7 +167,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
skip_host_families = [] skip_host_families = []
def process(self, instance): def process(self, instance):
if self._temp_skip_instance_by_settings(instance): if self.skip_instance_by_settings(instance):
return return
# Mark instance as processed for legacy integrator # Mark instance as processed for legacy integrator
@ -203,11 +203,12 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
# the try, except. # the try, except.
file_transactions.finalize() file_transactions.finalize()
def _temp_skip_instance_by_settings(self, instance): def skip_instance_by_settings(self, instance):
"""Decide if instance will be processed with new or legacy integrator. """Decide if instance will be processed with new integrator.
This is temporary solution until we test all usecases with new (this) This might be temporary solution for broken publishing for any families
integrator plugin. (therefore it should fallback into legacy publish plugin) OR this
could replace 'exclude_families' in legacy plugin (host is required).
""" """
host_name = instance.context.data["hostName"] host_name = instance.context.data["hostName"]

View file

@ -225,7 +225,16 @@
] ]
}, },
"IntegrateAsset": { "IntegrateAsset": {
"skip_host_families": [] "skip_host_families": [
{
"host": [
"aftereffects"
],
"families": [
"render.farm"
]
}
]
}, },
"IntegrateHeroVersion": { "IntegrateHeroVersion": {
"enabled": true, "enabled": true,