Skip to content

Commit 4e09df0

Browse files
authored
Add setCheckpointState method to the Python API. (#817)
1 parent e301ef8 commit 4e09df0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pycue/opencue/wrappers/frame.py

+9
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ def markAsWaiting(self):
165165
job_pb2.FrameMarkAsWaitingRequest(frame=self.data),
166166
timeout=Cuebot.Timeout)
167167

168+
def setCheckpointState(self, checkPointState):
169+
"""Sets the checkPointState of the frame
170+
:param checkPointState: job_pb.CheckpointState(Int)
171+
:return:
172+
"""
173+
self.stub.SetCheckpointState(
174+
job_pb2.FrameSetCheckpointStateRequest(frame=self.data, state=checkPointState)
175+
)
176+
168177
def id(self):
169178
"""Returns the id of the frame.
170179
:rtype: str

0 commit comments

Comments
 (0)