Skip to content

Commit abf399a

Browse files
committed
vault backup: 2025-09-17 19:41:28
Affected files: .obsidian/workspace.json fleeting-notes/2025-09-15.md fleeting-notes/2025-09-17.md
1 parent b40fa37 commit abf399a

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.obsidian/workspace.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "fleeting-notes/2025-09-15.md",
16+
"file": "fleeting-notes/2025-09-17.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "2025-09-15"
21+
"title": "2025-09-17"
2222
}
2323
}
2424
]
@@ -176,8 +176,9 @@
176176
},
177177
"active": "2ad3f572c2603809",
178178
"lastOpenFiles": [
179-
"fleeting-notes/2025-09-12.md",
180179
"fleeting-notes/2025-09-15.md",
180+
"fleeting-notes/2025-09-17.md",
181+
"fleeting-notes/2025-09-12.md",
181182
"fleeting-notes/2025-09-07.md",
182183
"fleeting-notes/2025-08-23.md",
183184
"permanent-notes/tech-im-interested-in-2025.md",
@@ -202,7 +203,6 @@
202203
"fleeting-notes/2025-07-07.md",
203204
"fleeting-notes/2025-06-16.md",
204205
"fleeting-notes/2025-07-17.md",
205-
"fleeting-notes/2024-10-06.md",
206206
"attachments/Pasted image 20230109114133.png",
207207
"attachments/Pasted image 20230109112631.png",
208208
"attachments/Pasted image 20220905142930.png",

fleeting-notes/2025-09-15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ publish_date: 2025-09-15
33
tags:
44
- cloudflare
55
---
6-
cloudflare `executionCtx.waitUntil` lets return before an async task is complete. it will ensure the workers stays alive until the promise has resolved
6+
cloudflare `executionCtx.waitUntil` lets return before an async task is complete. it will ensure the workers stays alive until the promise has resolved.
77

88
https://hono.dev/docs/api/context#executionctx
99

fleeting-notes/2025-09-17.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
publish_date: 2025-09-17
3+
tags:
4+
- cloudflare
5+
---
6+
Cloudflare queues are really straight forward to setup.
7+
8+
1. create the queue in the cf dashboard or via wrangler, and grab the queue name
9+
2. in any given cf worker project, you can define a queue `consumer`, which lets you listen to queue events, which are just arrays of arbitary json which you can define. pairing with zod we can manage complex message types.
10+
3. in any given cf worker you can also define a `producer` which is the thing that can produce item to place into the queue. when setting up a producer you create a binding which can we called anything. in the Pinecone course we simply call it `QUEUE` , which gives us an worker object which we can use anywhere in our cf worker to create a message like so `c.env.QUEUE.send(queueMessage)`
11+
12+
you can do anything when you receive the message such writing to d1 or invoking something else. queues open up the paradigm of background tasks.

0 commit comments

Comments
 (0)