run
or synchronous runSync
method.
Choosing between asynchronous and synchronous execution hinges on your task’s needs and application design.
runSync
method on your endpoint. This method blocks the execution until the endpoint run is complete or until it times out.
run
method on the endpoint. This method allows you to start an endpoint run and then check its status or wait for its completion at a later time.
"return_aggregate_stream": True
option on the start
method of your Handler. Once enabled, use the stream
method to receive data as it becomes available.
status
method and specify the id
of the run to get the status of a run.
cancel()
function on the run request. You might want to cancel a Job because it’s stuck with a status of IN_QUEUE
or IN_PROGRESS
, or because you no longer need the result.
RequestTimeout
field in the RunInput
struct.
Input
map of the JobInput
struct.
PurgeQueueInput
struct and set the desired values. Call the PurgeQueue
method of the Endpoint with the PurgeQueueInput
instance.
PurgeQueue()
doesn’t affect Jobs in progress.