ph0123:

the outputs are as below. The worker0 is not see in the output. I try to print “count” value. But there is no output for “count” variable.


It means the program didn’t git the except branch below:
    except:
	   print("rank ",rank," run ",count,"/",len(_local_dict))

If there are exceptions occur when processing the RPC in the try block, it will be thrown locally when you call fut.wait() or rref.to_here().
Given the above code, the timeout won’t occur in the try block, as rpc_async always returns immediately with a future object.