Does anyone know or have documentation on how to initiate a batch reset in python for temporal?
I’ve been looking over the python documentation and it’s not immediately obvious to me. But I know the CLI is able to do it in golang so it seems like it’s possible
This would require using the Temporal gRPC API directly. It would be something like await my_client.workflow_service.start_batch_operation(temporalio.api.workflowservice.v1.StartBatchOperationRequest(**some_other_fields, reset_operation=temporalio.api.batch.v1.BatchOperationReset(**some_fields)). You can look at the API protos to understand all the fields needed, and you can look at the CLI source to see how it does batch reset. There are no samples for this API because it is advanced and usually not recommended for direct use. You can of course always execute the CLI from Python code which may be easier.