It looks like it will run forever if it can't connect to mariadb, but fails if the table schema isn't correct. Needs more investigation to confirm, and check other corner-cases too.
Summary of results: If pt-heartbeat-wikimedia is able to connect to mariadb on start, and the table schema meets its requirements, it will stay running even if mariadb goes away. Start-up problems are all fatal.