I'm running some really long batch process. So in case user navigates away from the batch progress page, I'd like to be able to give him a link that leads back to that page. How can I get the batch ID needed for the batch processing page?
Knowing that batch processing url is something like
http://example.com/batch?op=start&id=183 so in theory I could look for the
$_GET['id'] inside my batch process function and store that in a session variable but it seems really ugly. Yet I didn't find any way to get the id of the batch that I just started.
It would be really nice if
batch_set() would return batch id or would just add it to the batch definition array.