diff options
| author | winter | 2025-02-24 18:29:51 +0000 |
|---|---|---|
| committer | winter | 2025-02-24 18:29:51 +0000 |
| commit | a88283c526a779389efa2b819201a2331de0f2b2 (patch) | |
| tree | 684e6aa432d6062373941e3018dfc744adc03ff5 /Digitigrade/Job | |
| parent | 261ab1364aa40384b0315be60e78cd89ea7fe661 (diff) | |
implement federation policies and instance info substitution policy
Diffstat (limited to 'Digitigrade/Job')
| -rw-r--r-- | Digitigrade/Job/PushObject.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Job/PushObject.php b/Digitigrade/Job/PushObject.php index c3d7210..0278eb5 100644 --- a/Digitigrade/Job/PushObject.php +++ b/Digitigrade/Job/PushObject.php @@ -3,6 +3,7 @@ namespace Digitigrade\Job; use Digitigrade\Exception\AuthException; use Digitigrade\Exception\EndpointMissingException; +use Digitigrade\HttpResponseStatus\PolicyRejected; use Digitigrade\Job; use Digitigrade\Logger; use Digitigrade\Model\Instance; @@ -38,6 +39,9 @@ class PushObject extends Job { // start auth now and hopefully by the next retry we'll be able to $instance->beginOutboundAuth(); throw $e; + } catch (PolicyRejected $e) { + $log->warning("can't push to $instance->domain because a policy rejected it. giving up"); + // and don't throw again, pretty much same reasoning as above } } }
\ No newline at end of file |
