Test plan: 1) Go to stage MARC records for import /cgi-bin/koha/tools/stage-marc-import.pl 2) Upload a .mrc file with a couple thousand records 3) Click upload file and then the bottom button "Stage for import" 4) Notice how the bar never progresses, until the job is done successfully. I believe this is because $self->size and $self->progress are both inside $schema->storage->txn_begin and they are not updated in the database in real time until the job is successfully done. I also think $self->progress should be $self->step but I'm not 100% sure about that one.