Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed chunk size from publish jobs #33

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,13 @@ class ProcessSubmittedCacheJobOnFarm(pyblish.api.InstancePlugin,
deadline_pool = ""
deadline_pool_secondary = ""
deadline_group = ""
deadline_chunk_size = 1
deadline_priority = None

# regex for finding frame number in string
R_FRAME_NUMBER = re.compile(r'.+\.(?P<frame>[0-9]+)\..+')

plugin_pype_version = "3.0"

# script path for publish_filesequence.py
publishing_script = None

def _submit_deadline_post_job(self, instance, job):
"""Submit publish job to Deadline.

Expand Down Expand Up @@ -169,7 +165,7 @@ def _submit_deadline_post_job(self, instance, job):
"Comment": instance.context.data.get("comment", ""),

"Department": self.deadline_department,
"ChunkSize": self.deadline_chunk_size,
"ChunkSize": 1,
"Priority": priority,
"InitialStatus": initial_status,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
deadline_pool = ""
deadline_pool_secondary = ""
deadline_group = ""
deadline_chunk_size = 1
deadline_priority = None

# regex for finding frame number in string
Expand All @@ -160,9 +159,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin,
families_transfer = ["render3d", "render2d", "ftrack", "slate"]
plugin_pype_version = "3.0"

# script path for publish_filesequence.py
publishing_script = None

# poor man exclusion
skip_integration_repre_list = []

Expand Down Expand Up @@ -247,7 +243,7 @@ def _submit_deadline_post_job(self, instance, job, instances):
"Comment": instance.context.data.get("comment", ""),

"Department": self.deadline_department,
"ChunkSize": self.deadline_chunk_size,
"ChunkSize": 1,
"Priority": priority,
"InitialStatus": initial_status,

Expand Down
6 changes: 0 additions & 6 deletions server/settings/publish_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ class ProcessCacheJobFarmModel(BaseSettingsModel):
deadline_department: str = SettingsField(title="Department")
deadline_pool: str = SettingsField(title="Pool")
deadline_group: str = SettingsField(title="Group")
deadline_chunk_size: int = SettingsField(title="Chunk Size")
deadline_priority: int = SettingsField(title="Priority")


Expand All @@ -306,9 +305,7 @@ class ProcessSubmittedJobOnFarmModel(BaseSettingsModel):
deadline_department: str = SettingsField(title="Department")
deadline_pool: str = SettingsField(title="Pool")
deadline_group: str = SettingsField(title="Group")
deadline_chunk_size: int = SettingsField(title="Chunk Size")
deadline_priority: int = SettingsField(title="Priority")
publishing_script: str = SettingsField(title="Publishing script path")
skip_integration_repre_list: list[str] = SettingsField(
default_factory=list,
title="Skip integration of representation with ext"
Expand Down Expand Up @@ -517,17 +514,14 @@ class PublishPluginsModel(BaseSettingsModel):
"deadline_department": "",
"deadline_pool": "",
"deadline_group": "",
"deadline_chunk_size": 1,
"deadline_priority": 50
},
"ProcessSubmittedJobOnFarm": {
"enabled": True,
"deadline_department": "",
"deadline_pool": "",
"deadline_group": "",
"deadline_chunk_size": 1,
"deadline_priority": 50,
"publishing_script": "",
"skip_integration_repre_list": [],
"families_transfer": ["render3d", "render2d", "ftrack", "slate"],
"aov_filter": [
Expand Down