I need to call observer which must be called when a shipment is created and after it is saved. I tried using the event
sales_order_shipment_save_after
but it is called before shipment is saved and before there is an entry in the database.
sales_order_shipment_save_commit_after
does what you want.
The *_save_commit_after
event is triggered after the transaction has been committed, i.e. when the changes were written to the database.
kudos to Fabian Schmengler
sales_order_shipment_save_commit_after
probably does what you want. kudos to magento.stackexchange.com/a/120029/34273afterSave
method)sales_order_shipment_save_commit_after
worked. @PhilippSander post it as an answer so I'll accept it.