Long Running Task location(s)

We are currently running very, very large full XML import (I know, but we are required to because we are migrating to a different OS and a different DB) that takes anywhere from 60 to 72 hours to complete. The problem is that along the way, /rest/api/longrunningtask no longer works because of authorization failure.

Right now the only way we have to monitor progress is to tail the atlassian-confluence.log for the word “finished”.

Is this information kept in the database, and if so which tables are used? That way we can at least check the status using DB queries.