File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ export class ProdUsageManager implements UsageManager {
77
77
}
78
78
79
79
async flush ( ) {
80
- console . log ( "Flushing usage" ) ;
81
-
82
80
return await this . #reportUsage( ) ;
83
81
}
84
82
@@ -105,22 +103,10 @@ export class ProdUsageManager implements UsageManager {
105
103
106
104
this . _lastSample = sample ;
107
105
108
- console . log ( "Reporting usage" , {
109
- cpuTimeSinceLastSample,
110
- } ) ;
111
-
112
106
if ( cpuTimeSinceLastSample <= 0 ) {
113
107
return ;
114
108
}
115
109
116
- const now = performance . now ( ) ;
117
-
118
110
await client . sendUsageEvent ( { durationMs : cpuTimeSinceLastSample } ) ;
119
-
120
- const durationInMs = performance . now ( ) - now ;
121
-
122
- console . log ( "Reported usage" , {
123
- durationInMs,
124
- } ) ;
125
111
}
126
112
}
Original file line number Diff line number Diff line change @@ -142,7 +142,14 @@ export type TaskOptions<
142
142
memory ?: MachineMemory ;
143
143
144
144
/** Preset to use for the machine. Defaults to small-1x */
145
- preset ?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" ;
145
+ preset ?:
146
+ | "micro"
147
+ | "small-1x"
148
+ | "small-2x"
149
+ | "medium-1x"
150
+ | "medium-2x"
151
+ | "large-1x"
152
+ | "large-2x" ;
146
153
} ;
147
154
/** This gets called when a task is triggered. It's where you put the code you want to execute.
148
155
*
You can’t perform that action at this time.
0 commit comments