mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Opt-out earlier if no burnins per representation to process
This commit is contained in:
parent
312e0e7ad4
commit
447e3156af
1 changed files with 10 additions and 3 deletions
|
|
@ -194,6 +194,16 @@ class ExtractBurnin(publish.Extractor):
|
|||
).format(host_name, product_type, task_name, profile))
|
||||
return
|
||||
|
||||
burnins_per_repres = self._get_burnins_per_representations(
|
||||
instance, burnin_defs
|
||||
)
|
||||
if not burnins_per_repres:
|
||||
self.log.debug(
|
||||
"Skipped instance. No representations found matching a burnin"
|
||||
"definition in: %s", burnin_defs
|
||||
)
|
||||
return
|
||||
|
||||
burnin_options = self._get_burnin_options()
|
||||
|
||||
# Prepare basic data for processing
|
||||
|
|
@ -204,9 +214,6 @@ class ExtractBurnin(publish.Extractor):
|
|||
|
||||
# Args that will execute the script
|
||||
executable_args = ["run", scriptpath]
|
||||
burnins_per_repres = self._get_burnins_per_representations(
|
||||
instance, burnin_defs
|
||||
)
|
||||
for repre, repre_burnin_defs in burnins_per_repres:
|
||||
# Create copy of `_burnin_data` and `_temp_data` for repre.
|
||||
burnin_data = copy.deepcopy(_burnin_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue