wait for initialisation to finish when worker is restarted