fix: add unlock process on shutdown function #383

This commit is contained in:
vnmedeiros 2021-02-11 14:19:35 -03:00
parent c23ad3d37f
commit 0f5a2a0b87
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
$this->close( $batch->key, 'errored' );
$this->debug('Batch closed due to captured error');
$this->unlock_process();
});
$task = $batch;