fix: add unlock process on shutdown function #383
This commit is contained in:
parent
01b6e0798d
commit
2eed496a89
|
@ -305,7 +305,7 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
|
||||||
|
|
||||||
$this->close( $batch->key, 'errored' );
|
$this->close( $batch->key, 'errored' );
|
||||||
$this->debug('Batch closed due to captured error');
|
$this->debug('Batch closed due to captured error');
|
||||||
|
$this->unlock_process();
|
||||||
});
|
});
|
||||||
|
|
||||||
$task = $batch;
|
$task = $batch;
|
||||||
|
|
Loading…
Reference in New Issue