We have a node type that triggers a batch, when we save a new node with the core Batch API we get a nice batch as expected and then when it is done it redirects back to the newly created node page and the messaged "Node was saved successfully" is displayed as a drupal_set_message() at the top of the node.

With background_batch we get the message on the batch page instead. This message should probably be transferred somehow to the final redirect. I don't think it can happen in Session anymore because of the way it works. Just a stub for now.

Comments

Elijah Lynn created an issue.

Elijah Lynn’s picture

For now I used a hook_batch_alter and put the $_SESSION['messages'] in the $set['results'] and then in the 'finished' callback I did a loop on the messages to drupal_set_message() on them.