generate status.json earlier for frontend to avoid 'file not found' log in apache