File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
crates/base/src/rt_worker Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,17 @@ impl WorkerPool {
460
460
let fence = Arc :: new ( Notify :: const_new ( ) ) ;
461
461
462
462
if let Err ( ex) = req_start_tx. send ( fence. clone ( ) ) {
463
+ // NOTE(Nyannyacha): The only way to be trapped in
464
+ // this branch is if the supervisor associated with
465
+ // the isolate has been terminated for some reason,
466
+ // such as a wall-clock timeout.
467
+ //
468
+ // It can be expected enough if many isolates are
469
+ // created at once due to requests rapidly
470
+ // increasing.
471
+ //
472
+ // To prevent this, we must give a wall-clock time
473
+ // limit enough to each supervisor.
463
474
error ! ( "failed to notify the fence to the supervisor" ) ;
464
475
return Err ( ex)
465
476
. with_context ( || "failed to notify the fence to the supervisor" ) ;
You can’t perform that action at this time.
0 commit comments