MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / cancel_batch

Function cancel_batch

src/inference.py:1148–1153  ·  view source on GitHub ↗
(model, ids)

Source from the content-addressed store, hash-verified

1146 model.batch_status(i)
1147
1148def cancel_batch(model, ids):
1149 model = RemoteModel(model)
1150 for i in ids:
1151 response = model.batch_status(i)
1152 if response.status not in ["failed", "cancelling"]:
1153 model.cancel_batch(i)
1154
1155def delete_batch(model, ids):
1156 model = RemoteModel(model)

Callers

nothing calls this directly

Calls 3

batch_statusMethod · 0.95
cancel_batchMethod · 0.95
RemoteModelClass · 0.90

Tested by

no test coverage detected