-
|
I want to know if a certain command is cached (aka turbo will not run it from scratch) before executing that command. Example: I want to check if I can use pnpm turbo run build --filter=site --dry-run=json | jq '.tasks[-1].cacheState.local'
# trueAt the same time, if I just do: pnpm turbo run build --filter=siteturbo can almost instantly tell if So, how can I make turbo output the info I want without waiting that long?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
this isn't quite true. In order to find an existing cache, turbo has to calculate the hash of the current state of the inputs. If that's slow, then turbo can't know how to check whether cached outputs exist for that hash or not.
Could run the command you posted above and add the |
Beta Was this translation helpful? Give feedback.
--dryis really the only option at the moment.this isn't quite true. In order to find an existing cache, turbo has to calculate the hash of the current state of the inputs. If that's slow, then turbo can't know how to check whether cached outputs exist for that hash or not.
Could run the command you posted above and add the
--cpuprofile=my-profileflag to see where it's spending so much time?