I have a form with 5 buttons and each button run a different batch, some batch processes take several minutes. I want to block the button if the batch processes is already running, because other user admin can access to the same form and try to run the batch that is already running at this moment for other user.
How can i know what batch processes is running? i try using batch_get(); but every time this function return an empty array.