status !== Status::Failed) { throw new DomainException(__('automations.errors.only_failed_can_retry')); } $run->update([ 'status' => Status::Pending, 'error' => null, 'finished_at' => null, ]); ProcessAutomationNode::dispatch($run, $nodeId); } }