Batch Terminate workflow with an API call

Hi Team, I found we have Temporal CLI - tctl to batch terminate workflows. But wondering if we have any Java API call to terminate all workflow via providing a workflow ID? Thanks!

Hi @Maggie, I believe the tctl batch terminate is currently the only option. Note that batch operations rely on enhanced visibility, so you have to enable Elasticsearch to use them.

Also note that when your workflows are “stuck” or have a possible bug, the standard way would be to fix the bug and redeploy. Another options could be to reset the workflow state to before the bad deployment, see here for more info. Hope this helps.