[issue15983] multiprocessing JoinableQueue's join function with timeout

2014-06-22 Thread Tumer Topcu

Changes by Tumer Topcu tum...@gmail.com:


--
nosy: +tumert, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2014-06-22 Thread Tumer Topcu

Changes by Tumer Topcu tum...@gmail.com:


--
nosy: +trent

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2014-06-22 Thread Tumer Topcu

Tumer Topcu added the comment:

Another option is instead of adding a timeout parameter, a new function to 
check if everything is done. Like:

def all_tasks_finished(self)
return self._unfinished_tasks._semlock._is_zero()

Which can then be utilized exactly shown in the above noted stackoverflow 
answer. This way it will be consistent with queue.py

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-21 Thread Richard Oudkerk

Richard Oudkerk added the comment:

I notice that queue.Queue.join() does not have a timeout parameter either.

Have you hit a particular problem that would be substantially easier with the 
patch?

--
versions:  -Python 2.7, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-21 Thread Karl Bicker

Karl Bicker added the comment:

Actually, I would like to check if the threads working on the queue are still 
alive. 

However, it occurs to me now that I would need a facility to distinguish 
between a timeout and an actual join. Unfortunately, my original patch does not 
provide this, one would have to implement an additional check and think about 
the correct way to signal a timeout.

Also, there seem to be other people looking for this feature: 
http://stackoverflow.com/questions/1564501/add-timeout-argument-to-pythons-queue-join

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Karl Bicker

New submission from Karl Bicker:

The multiprocessing.JoinableQueue's function join() should have a timeout 
argument so that one can check on other things while waiting for a queue to 
finish.

As join() uses a condition to wait anyway, a timeout is easily implemented and 
passed to the Condidition.wait(). Patch is attached.

--
components: Library (Lib)
files: JoinableQueue_with_timeout.patch
keywords: patch
messages: 170812
nosy: legordian
priority: normal
severity: normal
status: open
title: multiprocessing JoinableQueue's join function with timeout
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27233/JoinableQueue_with_timeout.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
versions:  -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15983] multiprocessing JoinableQueue's join function with timeout

2012-09-20 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15983
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com