File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/WebJobs.Script.Grpc/Channel Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ internal class GrpcWorkerChannel : IRpcWorkerChannel, IDisposable
59
59
private IWorkerProcess _rpcWorkerProcess ;
60
60
private TaskCompletionSource < bool > _reloadTask = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
61
61
private TaskCompletionSource < bool > _workerInitTask = new TaskCompletionSource < bool > ( TaskCreationOptions . RunContinuationsAsynchronously ) ;
62
- private TimeSpan functionLoadTimeout = TimeSpan . FromMinutes ( 10 ) ;
62
+ private TimeSpan _functionLoadTimeout = TimeSpan . FromMinutes ( 10 ) ;
63
63
64
64
internal GrpcWorkerChannel (
65
65
string workerId ,
@@ -259,9 +259,10 @@ public void SendFunctionLoadRequests(ManagedDependencyOptions managedDependencyO
259
259
{
260
260
if ( functionTimeout . HasValue )
261
261
{
262
- functionLoadTimeout = functionTimeout . Value > functionLoadTimeout ? functionTimeout . Value : functionLoadTimeout ;
262
+ _functionLoadTimeout = functionTimeout . Value > _functionLoadTimeout ? functionTimeout . Value : _functionLoadTimeout ;
263
263
_eventSubscriptions . Add ( _inboundWorkerEvents . Where ( msg => msg . MessageType == MsgType . FunctionLoadResponse )
264
- . Timeout ( functionLoadTimeout )
264
+ . Timeout ( _functionLoadTimeout )
265
+ . Take ( _functions . Count ( ) )
265
266
. Subscribe ( ( msg ) => LoadResponse ( msg . Message . FunctionLoadResponse ) , HandleWorkerFunctionLoadError ) ) ;
266
267
}
267
268
else
You can’t perform that action at this time.
0 commit comments