From 273213296361d33ba1005e01e0d147955153030e Mon Sep 17 00:00:00 2001 From: ellbristow Date: Fri, 7 Jun 2024 15:48:25 +0200 Subject: [PATCH] Add batch to retries --- delivery_parcelhub_whistl/models/delivery.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/delivery_parcelhub_whistl/models/delivery.py b/delivery_parcelhub_whistl/models/delivery.py index ef165a4..8d47722 100644 --- a/delivery_parcelhub_whistl/models/delivery.py +++ b/delivery_parcelhub_whistl/models/delivery.py @@ -576,7 +576,9 @@ def whistl_tracking_state_update_scheduled(self, batch_size=100): continue self.whistl_tracking_state_update(picking) if self._whistl_get_waiting_pickings(): - self.with_delay().whistl_tracking_state_update_scheduled() + self.with_delay().whistl_tracking_state_update_scheduled( + batch_size=batch_size + ) def whistl_tracking_state_update(self, picking): request_url = self._get_whistl_tracking_url(