Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 3463bdf

Browse files
committed
Update README.md and enhance Cloudflare Queues integration
- Improved documentation in README.md regarding Cloudflare Queues for GitHub API request management. - Adjusted wrangler.toml for better configuration of the GitHub task queue. - Enhanced message handling in index.ts to process queued tasks for fetching repository issues, contributors, and pull requests. - Introduced new types in types.ts for improved type safety in GitHub task messages. These updates enhance the application's efficiency in managing GitHub API interactions while adhering to rate limits.
1 parent ebcf063 commit 3463bdf

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

wrangler.jsonc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
// Wrangler configuration file
3+
"$schema": "node_modules/wrangler/config-schema.json",
4+
"name": "frosh-api",
5+
"main": "src/index.ts",
6+
"compatibility_date": "2023-08-01",
7+
"workers_dev": false,
8+
9+
"routes": [
10+
{ "pattern": "api.friendsofshopware.com", "custom_domain": true }
11+
],
12+
13+
"kv_namespaces": [
14+
{ "binding": "STORAGE", "id": "6aaf2e17488841168a1ad91cf8c4a91b", "preview_id": "6aaf2e17488841168a1ad91cf8c4a91b" }
15+
],
16+
17+
"queues": {
18+
"producers": [
19+
{
20+
"queue": "frosh-api-github-tasks",
21+
"binding": "GITHUB_QUEUE"
22+
}
23+
],
24+
"consumers": [
25+
{
26+
"queue": "frosh-api-github-tasks",
27+
"max_batch_size": 10,
28+
"max_batch_timeout": 30,
29+
"max_retries": 3
30+
}
31+
]
32+
},
33+
34+
"vars": {
35+
"ORG_NAME": "friendsofshopware"
36+
},
37+
38+
"triggers": {
39+
"crons": ["0 * * * *", "*/5 * * * *"]
40+
}
41+
}

0 commit comments

Comments
 (0)