Store and forward - force forward in python script

Hello

Is there a way to trigger / force the forwarding of historian data to the db via jython script?

We have a UI where an operator triggers the saving of critical machine tag parameters to the historian (system.tag.storeTagHistory), we then want to immediately query the historian db to confirm the tags where successfully historized in the db, and based on the results either create a 'complete' task record in one of our tables or display an error to the operator.

We don't have direct control over the gateway settings as our gateway / db is managed by another company - so I can't just turn off store and forward (nor do I think we would want to). I'd also prefer not to use delays as the store and forward settings could be changed at a later date, and it would also not make for the nicest user experiance