kika
Explore posts from serversCDCloudflare Developers
•Created by kika on 7/20/2023 in #pages-help
Access to git tag
git describe --candidates 0
doesn't return a valid tag even if the HEAD of the corresponding branch is correctly tagged with an annotated tag. How can I get that tag?
Or, what exact command Cloudflare build system uses to clone the repository?
I'm using Gitlab if that matters.
Thanks1 replies
CDCloudflare Developers
•Created by kika on 6/2/2023 in #workers-help
Initialize worker
Hi, is there an idiomatic way to initialize worker outside of the
fetch()
? I want to try the new connect()
to connect to the database, but I don't want to do that repeatedly for every request that fetch()
may handle. Is there something better than global variable and a mutex?2 replies
CDCloudflare Developers
•Created by kika on 3/13/2023 in #workers-help
API operations/invocation
It seems I'm hitting a 1000 ops per invocation limit in my scheduled worker while writing to the KV. But I still need to write more than 1000 k/v pairs and bulk writes are not supported according to the docs. What is the recommended way of dealing with this? If instead of writing to KV I'll send the data over the queue and batch into 100 messages, would every 100 messages considered a separate invocation?
6 replies