cloudflare / cloudflare/workerd

Feature Request — Runtime APIs — Subrequest Counter

Open
#1,815 8 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.