Skip to content

Commit

Permalink
Prevent invalid memory increase on show override
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares committed Mar 2, 2024
1 parent 2889ed6 commit a9cf2e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pycue/opencue/wrappers/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def createServiceOverride(self, data):
:type data: opencue.wrapper.service.Service
:param data: Service.data object
"""

# min_memory_increase has to be greater than 0.
if data.min_memory_increase <= 0:
raise ValueError("Minimum memory increase must be > 0")

self.stub.CreateServiceOverride(show_pb2.ShowCreateServiceOverrideRequest(
show=self.data, service=data),
timeout=Cuebot.Timeout)
Expand Down

0 comments on commit a9cf2e5

Please sign in to comment.