Skip to content

Commit

Permalink
reevert wrong changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaJafar committed Nov 22, 2024
1 parent 5337178 commit 729ba59
Showing 1 changed file with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,12 @@ def get_job_info(self, job_info=None):

job_info.Frames = frames

job_info.Pool = instance.data.get("primaryPool")
job_info.SecondaryPool = instance.data.get("secondaryPool")

attr_values = self.get_attr_values_from_data(instance.data)

chunk_size = instance.data.get("chunk_size", self.chunk_size)
# When `frames` instance data is a string, it indicates that
# the output is a single file.
# Set the chunk size to a large number because multiple
# machines cannot render to the same file.
if isinstance(instance.data.get("frames"), str):
chunk_size = 99999999

job_info.ChunkSize = chunk_size

job_info.Comment = context.data.get("comment")
job_info.Priority = attr_values.get("priority", self.priority)
job_info.Group = attr_values.get("group", self.group)
job_info.LimitGroups = attr_values.get("limits", self.limits)
job_info.MachineLimit = attr_values.get(
"machine_limit", self.machine_limit
)

# Set job environment variables
job_info.add_instance_job_env_vars(self._instance)
job_info.add_render_job_env_var()
job_info.ChunkSize = 99999999

return job_info

Expand Down

0 comments on commit 729ba59

Please sign in to comment.