Commit Graph

26 Commits

Author SHA1 Message Date
82e6ca7b1a
task group naming logic changed 2022-03-30 12:37:32 +02:00
17539e9c27
made apply non-blocking by using a meta-task 2022-03-29 20:01:44 +02:00
1beb9fc9b0
gather_and_close now automatically locks the pool 2022-03-29 19:43:21 +02:00
23a4cb028a
renamed group_size to num_concurrent in _map 2022-03-29 19:34:27 +02:00
54e5bfa8a0
drastically simplified meta-task internals 2022-03-29 19:34:13 +02:00
a9011076c4
fixed potential race cond. gathering meta tasks 2022-03-25 12:58:18 +01:00
7e34aa106d
sphinx documentation; adjusted all docstrings; moved some modules to non-public subpackage 2022-03-24 13:38:30 +01:00
4c6a5412ca removed num_cancellations and num_finished from the pool interface; added num_cancelled; made the num argument non-optional in the start and stop methods of the SimpleTaskPool; changed some internals; improved docstrings 2022-03-17 13:52:02 +01:00
44c03cc493 catching exceptions in _queue_consumer meta task 2022-03-16 16:57:03 +01:00
7c66604ad0 renamed method get_task_group_ids and extended to accept any number of group names 2022-03-08 09:08:28 +01:00
c63f079da4 huge update:
introduced meta tasks which are used by `_map()`;
introduced task groups;
ending with `gather_and_close()` now;
pool unittests rewritten accordingly;
two new helper classes
2022-02-24 19:16:24 +01:00
4994135062 renamed num_tasks in the map-methods to group_size; reworded/extended the docstrings 2022-02-19 16:02:50 +01:00
024e5db0d4 license & copyright notices; docstrings for each module; extended readme 2022-02-09 23:14:42 +01:00
bc9d2f243e renamed "closing" a pool to "locking" it 2022-02-08 23:09:33 +01:00
410e73e68b bugfix for TaskPool._map; usage example for TaskPool 2022-02-08 16:15:55 +01:00
727f0b7c8b added full test coverage and docstrings for TaskPool as well as minor improvements 2022-02-08 14:30:42 +01:00
63aab1a8f6 added full test coverage of TaskPool and further improved its _map() method 2022-02-08 13:29:57 +01:00
586023f722 fixed unittests; minor changes 2022-02-07 23:41:52 +01:00
4ea815be65 refactored TaskPool._map; fixed TaskPool.apply; helper functions in separate module; new exception class 2022-02-07 17:31:43 +01:00
ac903d9be7 full test coverage for BaseTaskPool 2022-02-07 14:23:49 +01:00
e8e13406ea new interrupt flag for cancel_all to prevent _map() from starting new tasks 2022-02-06 16:32:42 +01:00
b5eed608b5 refactoring; new flush method to clear memory of ended tasks 2022-02-06 13:42:34 +01:00
2f0b08edf0 implemented working pool size limit; adjusted tests and examples; small renaming 2022-02-06 13:08:39 +01:00
a68e61dfa7 small test improvement 2022-02-05 22:28:19 +01:00
9ec5359fd6 docstrings, refactorings, test adjustments 2022-02-05 22:26:02 +01:00
3a27040a54 first couple of unittests for BaseTaskPool 2022-02-05 19:34:52 +01:00