remove the print function, and set verify to true for payload in publishing job

This commit is contained in:
Kayla Man 2023-05-27 00:56:11 +08:00
parent 32562e0b39
commit 271d017bdb
2 changed files with 1 additions and 2 deletions

View file

@ -582,7 +582,6 @@ class AbstractSubmitDeadline(pyblish.api.InstancePlugin):
metadata_folder = metadata_folder.replace(orig_scene,
new_scene)
instance.data["publishRenderMetadataFolder"] = metadata_folder
self.log.debug(f"MetadataFolder:{metadata_folder}")
self.log.info("Scene name was switched {} -> {}".format(
orig_scene, new_scene
))

View file

@ -348,7 +348,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
self.log.info("Submitting Deadline job ...")
url = "{}/api/jobs".format(self.deadline_url)
response = requests.post(url, json=payload, timeout=10, verify=False)
response = requests.post(url, json=payload, timeout=10)
if not response.ok:
raise Exception(response.text)