mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
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:
commit
bcc1512773
5 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
|
|
@ -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` | |
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue