这是indexloc提供的服务,不要输入任何密码
Skip to content

Build waits 90 seconds between packages when caching server is offline #541

@betaorbust

Description

@betaorbust

What version of Turborepo are you using?

1.0.25

What package manager are you using / does the bug impact?

npm, pnpm, Yarn v1

What operating system are you using?

Mac

Describe the Bug

When a caching server is offline or otherwise unreachable, it greatly slows down build speed as every request waits 90 seconds before timing out and running the local build step. This happens for every package, turning a 40 package build into something like an hour long build.

Expected Behavior

Ideally, caching would be an add-on to a local build and not blocking.

A per-run configurable timeout would be great. Basically, if the server fails to respond, or is unreachable after a set time, fall back to local automatically for the rest of the run.

I really want to adopt this, but don't want to take the whole team out if they're offline or if our caching server goes down :swe

Loving it so far. Thanks!

To Reproduce

npx turbo run build --api="http://offline-caching.server" --token=token --team=team_name

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions