diff options
Diffstat (limited to 'Digitigrade/Job/PushObject.php')
| -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 ee5841e..e86f1d7 100644 --- a/Digitigrade/Job/PushObject.php +++ b/Digitigrade/Job/PushObject.php @@ -1,6 +1,7 @@ <?php namespace Digitigrade\Job; +use Digitigrade\Exception\AuthException; use Digitigrade\Exception\EndpointMissingException; use Digitigrade\Job; use Digitigrade\Logger; @@ -33,6 +34,9 @@ class PushObject extends Job { $log->warning("can't push to $instance->domain because it has no push endpoint. giving up"); // and don't throw again here because we want it to look successful and not be retried // reasoning: i think it's unlikely for an instance with no endpoint to suddenly acquire one + } catch (AuthException $e) { + // start auth now and hopefully by the next retry we'll be able to + $instance->beginOutboundAuth(); } } }
\ No newline at end of file |
