pubsub publish doesn't happen in a transaction

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>