Merge remote-tracking branch 'pypeclub/bugfix/changed_default_targets' into bugfix/OP-3362_Nuke-Farm-Publish-WITHOUT-Review-not-working

This commit is contained in:
Jakub Jezek 2022-06-08 14:53:56 +02:00
commit bcc1512773
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
5 changed files with 12 additions and 3 deletions

View file

@ -66,7 +66,7 @@ def install():
log.info("Installing callbacks ... ")
register_event_callback("init", on_init)
if os.environ.get("HEADLESS_PUBLISH"):
if os.environ.get("OPENPYPE_REMOTE_PUBLISH"):
# Maya launched on farm, lib.IS_HEADLESS might be triggered locally too
# target "farm" == rendering on farm, expects OPENPYPE_PUBLISH_DATA
# target "remote" == remote execution

View file

@ -115,7 +115,7 @@ class MayaSubmitRemotePublishDeadline(openpype.api.Integrator):
environment["OPENPYPE_REMOTE_JOB"] = "1"
environment["OPENPYPE_USERNAME"] = instance.context.data["user"]
environment["OPENPYPE_PUBLISH_SUBSET"] = instance.data["subset"]
environment["HEADLESS_PUBLISH"] = "1"
environment["OPENPYPE_REMOTE_PUBLISH"] = "1"
payload["JobInfo"].update({
"EnvironmentKeyValue%d" % index: "{key}={value}".format(

View file

@ -104,6 +104,14 @@ def install_host(host):
MessageHandler.emit = modified_emit
if os.environ.get("OPENPYPE_REMOTE_PUBLISH"):
# target "farm" == rendering on farm, expects OPENPYPE_PUBLISH_DATA
# target "remote" == remote execution, installs host
print("Registering pyblish target: remote")
pyblish.api.register_target("remote")
else:
pyblish.api.register_target("local")
install_openpype_plugins()

View file

@ -23,7 +23,7 @@ class Integrator(InstancePlugin):
Wraps pyblish instance plugin. Targets set to "local" which means all
integrators should run on "local" publishes, by default.
"farm" targets could be used for integrators that should run on a farm.
"remote" targets could be used for integrators that should run externally.
"""
targets = ["local"]

View file

@ -67,6 +67,7 @@ We have a few required anatomy templates for OpenPype to work properly, however
| `ext` | File extension |
| `representation` | Representation name |
| `frame` | Frame number for sequence files. |
| `app` | Application Name |
| `output` | |
| `comment` | |