Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Fix - added local targets to install host #3303

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Jun 8, 2022

Brief description

By default when host is started, it should register targets to 'local', only if specific env var is set (OPENPYPE_REMOTE_PUBLISH) it should be 'remote'. This means
farm is using host to collect/validate/extract and publish on behalf of artist.

Description

Without this extractors weren't triggered in other host than Maya (which is explicitly setting targets to local because of implementation of remote pointcache publishing).
This PR sets 'targetst = ["local"]' to any host not started on a farm.

Testing notes:

  1. Retry Maya ABC pointcache farm publishing
  2. Try publish locally in Nuke

By default when host is started, it should register targets to 'local', only if specific env var is set (OPENPYPE_REMOTE_PUBLISH) it should be 'remote'. This means
farm is using host to collect/validate/extract and publish on behalf of artist.
@kalisp kalisp added the type: bug Something isn't working label Jun 8, 2022
@kalisp kalisp self-assigned this Jun 8, 2022
install_host registers targets implicitly for all hosts
@@ -115,7 +115,7 @@ def process(self, instance):
environment["OPENPYPE_REMOTE_JOB"] = "1"
environment["OPENPYPE_USERNAME"] = instance.context.data["user"]
environment["OPENPYPE_PUBLISH_SUBSET"] = instance.data["subset"]
environment["HEADLESS_PUBLISH"] = "1"
Copy link
Collaborator

@BigRoy BigRoy Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing more usage across the code base of HEADLESS_PUBLISH as a value. Will changing this influence any of those unwantedly?

E.g. Collect Scene Version will trigger for the maya render too but will now NOT capture this value. Other than that it just seemed to appear in code intended for Photoshop and After Effects.

Copy link
Member Author

@kalisp kalisp Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used same env var for two different use cases incorrectly. In this PR I renamed it more explicitly.

HEADLESS_PUBLISH is used in PS and AE mostly for automatic testing (where both apps are opened, pyblish run directly in those). PS uses same approach for Webpublisher, eg. external users could upload .psd which will be collected/extracted/published on their behalf. In this use case artist is not providing version in a .psd file name, but it is taken from DB (that is configurable by skip_hosts_headless_publish). I don't think it got triggered for Maya.

We plan to rename HEADLESS_PUBLISH to AUTOMATIC_PUBLISH in separate PR to make it more understandable, as it is not "headless" per se. Part of that PR will be more description in Dev documentation.

Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worked as expected

@kalisp kalisp merged commit 9de3b3f into develop Jun 9, 2022
@kalisp kalisp deleted the bugfix/changed_default_targets branch June 9, 2022 12:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants