Skip to content

Apache DataFusion SQL Query Engine

Limit cpu cores used when generating changelog (#2494)

Andy Grovea7c3b08da546
diff --git a/dev/release/README.md b/dev/release/README.md
index 2c42ad54c7..e3bcbed09d 100644
--- a/dev/release/README.md
+++ b/dev/release/README.md
@@ -127,6 +127,10 @@ CHANGELOG_GITHUB_TOKEN=<TOKEN> ./dev/release/update_change_log-all.sh master 8.0
git commit -a -m 'Create changelog for release'
```
+_If you see the error `"You have exceeded a secondary rate limit"` when running this script, try reducing the CPU
+allocation to slow the process down and throttle the number of GitHub requests made per minute, by modifying the
+value of the `--cpus` argument in the `update_change_log.sh` script._
+
You can add `invalid` or `development-process` label to exclude items from
release notes. Add `datafusion`, `ballista` and `python` labels to group items
into each sub-project's change log.
diff --git a/dev/release/update_change_log.sh b/dev/release/update_change_log.sh
index 07ba6f9794..28daf3d75c 100755
--- a/dev/release/update_change_log.sh
+++ b/dev/release/update_change_log.sh
@@ -55,6 +55,7 @@ git checkout "${SINCE_TAG}" "${OUTPUT_PATH}"
sed -i.bak '1,18d' "${OUTPUT_PATH}"
docker run -it --rm \
+ --cpus "0.1" \
-e CHANGELOG_GITHUB_TOKEN=$CHANGELOG_GITHUB_TOKEN \
-v "$(pwd)":/usr/local/src/your-app \
githubchangeloggenerator/github-changelog-generator \