Is there a Time Limit in Func ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there any time limit for the execution of the modules ?

If there is a time limit, Is it possible to modify the time limit inside
of a module ?

I am executing the method test inside of the rpms module:

-------------------
def test(self):
        import commands
        return list([ { package.split(" ")[0] : commands.getoutput("rpm
-V " + package.split(" ")[0]).split("\n") } for package in
self.inventory()[0:100] ])
-------------------

For less then 100 files it works fine, but for more files I get
following error message:


{'milton.ca': ['REMOTE_ERROR',
               'socket.timeout',
               "(110, 'Operation timed out.')",
               '  File
"/usr/lib/python2.5/site-packages/func/overlord/client.py", line 417, in
process_server\n    retval = getattr(conn, meth)(*args[:])\n   File
"/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__\n    return
self.__send(self.__name, args)\n   File
"/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request\n
verbose=self.__verbose\n   File "/usr/lib/python2.5/xmlrpclib.py", line
1188, in request\n    errcode, errmsg, headers = h.getreply()\n   File
"/usr/lib/python2.5/httplib.py", line 1195, ingetreply\n    response =
self._conn.getresponse()\n   File "/usr/lib/python2.5/httplib.py", line
924, in getresponse\n    response.begin()\n   File
"/usr/lib/python2.5/httplib.py", line 385, in begin\n    version,
status, reason = self._read_status()\n   File
"/usr/lib/python2.5/httplib.py", line 343, in _read_status\n    line =
self.fp.readline()\n   File "/usr/lib/python2.5/socket.py", line331, in
readline\n    data = recv(1)\n   File
"/usr/lib/python2.5/site-packages/certmaster/SSLConnection.py", line
132, in recv\n raise socket.timeout((110, "Operation timed out."))\n']}




-- 
----------------------------------------------------
[] ' s
Milton Paiva Neto
milton.paiva@xxxxxxxxx
mpaivaneto@xxxxxxxxxxxxxxxxxxx
http://miltonpaiva.wordpress.com/

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux