Commit 96c8752 1 parent dfed87a commit 96c8752 Copy full SHA for 96c8752
File tree 2 files changed +12
-6
lines changed
shared/packages/worker/src
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class QuantelAccessorHandle<Metadata> extends GenericAccessorHandle<Metad
201
201
sourceIsPlaceholder : true ,
202
202
reason : {
203
203
user : `Reserved clip, not yet ready for playout` ,
204
- tech : `Clip "${ clipSummary . ClipGUID } " has no frames` ,
204
+ tech : `Clip "${ clipSummary . ClipGUID } " has " ${ clipSummary . Frames } " frames` ,
205
205
} ,
206
206
}
207
207
}
Original file line number Diff line number Diff line change @@ -790,8 +790,11 @@ export class WorkerAgent {
790
790
} , 200 )
791
791
} )
792
792
try {
793
+ const startTime = performance . now ( )
793
794
const result = await ( ( fcn as any ) ( ...args ) as ReturnType < typeof fcn > )
794
795
796
+ this . logger . debug ( `Operation "${ key } " took ${ Math . floor ( performance . now ( ) - startTime ) } ms` )
797
+
795
798
let knownReason = true
796
799
if ( result ) {
797
800
// This is a bit of a hack, to access the various result properties type safely:
@@ -936,11 +939,14 @@ export class WorkerAgent {
936
939
if ( this . failureCounter === 0 ) {
937
940
// reset the failurePeriodCounter when there were no exceptions in the period
938
941
939
- this . logger . debug (
940
- `Worker ErrorCheck: There was a period with 0 errors, resetting failurePeriodCounter (from ${ this . failurePeriodCounter } )`
941
- )
942
- this . failurePeriodCounter = 0
943
- // everything seems fine
942
+ if ( this . failurePeriodCounter > 0 ) {
943
+ this . logger . debug (
944
+ `Worker ErrorCheck: There was a period with 0 errors, resetting failurePeriodCounter (from ${ this . failurePeriodCounter } )`
945
+ )
946
+ this . failurePeriodCounter = 0
947
+ } else {
948
+ this . logger . debug ( `Worker ErrorCheck: There was a period with 0 errors` )
949
+ }
944
950
return
945
951
}
946
952
You can’t perform that action at this time.
0 commit comments