Excel webhook sends throttled
This commit is contained in:
@@ -147,7 +147,7 @@ function trigger_excel_webhook(string $externalRef, array $localEnv): array
|
|||||||
}
|
}
|
||||||
|
|
||||||
$headers = build_n8n_webhook_headers($localEnv);
|
$headers = build_n8n_webhook_headers($localEnv);
|
||||||
throttle_webhook_channel('excel', 10);
|
throttle_webhook_channel('excel', 5);
|
||||||
$result = post_json($url, ['Bestellnummer' => $externalRef], $headers, 20);
|
$result = post_json($url, ['Bestellnummer' => $externalRef], $headers, 20);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
@@ -251,6 +251,7 @@ function dispatch_order_import_webhooks(PDO $pdo, array $localEnv, int $limit =
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throttle_webhook_channel('excel', 5);
|
||||||
$result = post_json($url, ['Bestellnummer' => $externalRef], $headers, 20);
|
$result = post_json($url, ['Bestellnummer' => $externalRef], $headers, 20);
|
||||||
|
|
||||||
$summary['processed']++;
|
$summary['processed']++;
|
||||||
|
|||||||
Reference in New Issue
Block a user