cloudflare / cloudflare/workerd

Detect startup phase vs handling a request

Open
#5,270 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

Is there currently a way to detect whether we're in the startup phase vs handling a request, especially for **module workers**? Something like:

```javascript
// Hypothetical API
if (someAPI.isStartupPhase()) {
// Safe to use eval for optimization
}
```

If not, would this be something the workerd team would consider adding?

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.