AsyncResultTimeout

106 views
Skip to first unread message

Brad Reisfeld

unread,
Jul 9, 2018, 6:36:04 PM7/9/18
to rpyc
Hi,

I am using an rsync threaded server 

ThreadedServer(SlaveService, hostname=self.host, port=self.port, reuse_addr=True

on a remote machine to run a process via subprocess Popen. The outline of the client code is here:

        with rmodules.subprocess.Popen(cmd, **opts) as self._proc:
            rmodules.sys.stdout.flush()
            for line in self._proc.stdout:
                self._output(line.encode())
        if self._proc.returncode == 0:
            error = ()
        else:
            error = (self._proc.returncode)
        return error

When I run the server on certain machines, I get the following exception on the client:

raise AsyncResultTimeout("result expired")
TimeoutError: result expired

This is a long running process that should generate constant output via its stdout.

Is there a way to remedy the situation? Is there a way to prevent the result from expiring?

Thanks.

-Brad 
Reply all
Reply to author
Forward
0 new messages