From 8c4109791ee0eefadf96c9d7c925da45c11a655f Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 14 Jan 2025 17:22:01 +0000 Subject: set up auth automatically on push failure --- Digitigrade/Job/PushObject.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Digitigrade/Job/PushObject.php') 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 @@ 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 -- cgit v1.3