diff --git a/src/Extensions/WorkflowApplicable.php b/src/Extensions/WorkflowApplicable.php index c75e8a39..37a84595 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -28,6 +28,7 @@ use Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance; use Symbiote\AdvancedWorkflow\Services\WorkflowService; use Terraformers\EmbargoExpiry\Extension\EmbargoExpiryExtension; +use Terraformers\EmbargoExpiry\Job\State\ActionProcessingState; /** * DataObjects that have the WorkflowApplicable extension can have a @@ -414,7 +415,7 @@ public function isEmbargoExpiryJobRunning(): bool return false; } - return $this->owner->getIsPublishJobRunning() || $this->owner->getIsUnPublishJobRunning(); + return ActionProcessingState::singleton()->getActionIsProcessing(); } /**