Allow setting cpuTimeSoftLimitMs and cpuTimeHardLimitMs from the env
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Start in internal/functions/serve/templates/main.ts at the referenced cpuTimeSoftLimitMs and cpuTimeHardLimitMs assignments. Trace how the CLI currently reads environment variables for local edge-function serving, then determine where these two limits should be connected. Done means the requested environment variables set both CPU limits when serving functions locally.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
I have a custom setup for deploying supabase edge functions to a self-hosted cloud where CPU limits apply differently. I would like to be able to test the edge functions locally with those cpu limits
Describe the solution you'd like
A set of environment variables that sets the cpu limits at https://github.com/supabase/cli/blob/8652151c891f70db49100b042b25f80f0e1cfcaf/internal/functions/serve/templates/main.ts#L171C11-L172
Describe alternatives you've considered
Nothing feasible
Additional context
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 523
- Avg merge
- 21h 21m
- Merged PRs (30d)
- 253
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from supabase/cli
-
🐛 Bug supabase/cli
Difficulty 4/5 3-5 days Newbie friendliness 58/100
-
🐛 Bug supabase/cli
-
🐛 Bug supabase/cli
-
🐛 Bug supabase/cli
-
🐛 Bug supabase/cli
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·