forked from vercel/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save task duration correctly (vercel#4540)
The bug is the `tracer()` updates duration every time you call it, and we hadn't called it after task execution. I'm adding a new state to get this timestamp. We cannot use `TargetBuilt` because we don't want to capture that state until _after_ cache is saved, and, conversely, we don't want to include the time to save the cache in the task duration.
- Loading branch information
1 parent
7abc46b
commit 516d19a
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters