cloudflare / cloudflare/workerd
Feature Request — Runtime APIs — Subrequest Counter
Open
feature request
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
It would be very helpful if a subrequest counter value was exposed at runtime for long-running scheduled tasks performed by workers. A real-world example use case is an hourly CRON task running for up to 15 minutes, which tends to hit the stated subrequest limit across various fetch(), KV, D1, etc subrequests. It the runtime API exposed a counter, this scheduled task could detect when it is approaching a limit and stop.
Contributor guide
Assessment
This issue has not been assessed yet.