Skip to content

Commit

Permalink
Add setCheckpointState method to the Python API. (AcademySoftwareFoun…
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares authored Oct 28, 2020
1 parent e301ef8 commit 4e09df0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pycue/opencue/wrappers/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ def markAsWaiting(self):
job_pb2.FrameMarkAsWaitingRequest(frame=self.data),
timeout=Cuebot.Timeout)

def setCheckpointState(self, checkPointState):
"""Sets the checkPointState of the frame
:param checkPointState: job_pb.CheckpointState(Int)
:return:
"""
self.stub.SetCheckpointState(
job_pb2.FrameSetCheckpointStateRequest(frame=self.data, state=checkPointState)
)

def id(self):
"""Returns the id of the frame.
:rtype: str
Expand Down

0 comments on commit 4e09df0

Please sign in to comment.