Commit Graph

99 Commits

Author SHA1 Message Date
Daniil Fajnberg ae6bb1bd17 skipping unix socket tests on Windows 2022-02-25 21:17:14 +01:00
Daniil Fajnberg e501a849f3 clarifications and corrections 2022-02-25 19:57:54 +01:00
Daniil Fajnberg ed6badb088 moved imports for unix socket connections to init methods of client and server 2022-02-25 19:09:28 +01:00
Daniil Fajnberg 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
Daniil Fajnberg 4994135062 renamed `num_tasks` in the map-methods to `group_size`; reworded/extended the docstrings 2022-02-19 16:02:50 +01:00
Daniil Fajnberg d0c0177681 full unit test coverage and docstrings for `client` module; minor refactoring 2022-02-19 12:56:08 +01:00
Daniil Fajnberg bac7b32342 full unit test coverage and docstrings for `session_parser` module; minor changes 2022-02-14 22:11:31 +01:00
Daniil Fajnberg 96d01e7259 full unit test coverage and docstrings for `session` module 2022-02-14 17:59:11 +01:00
Daniil Fajnberg 3f3eb7ce38 minor rephrasing 2022-02-13 21:12:35 +01:00
Daniil Fajnberg 05d51eface simplified method 2022-02-13 20:58:36 +01:00
Daniil Fajnberg b6aed727e9 additional unit tests 2022-02-13 19:55:27 +01:00
Daniil Fajnberg c9a8d9ecd1 better placeholders 2022-02-13 19:45:53 +01:00
Daniil Fajnberg 538b9cc91c major refactoring of the control session/parser classes; restructured constants 2022-02-13 19:39:21 +01:00
Daniil Fajnberg 3fb451a00e docstrings and full test coverage for `server` module; small adjustments 2022-02-13 16:17:50 +01:00
Daniil Fajnberg be03097bf4 massive overhaul of the control server interface;
making use of `ArgumentParser` for client commands;
new `ControlSession` object instantiated upon connection
2022-02-12 22:51:52 +01:00
Daniil Fajnberg 024e5db0d4 license & copyright notices; docstrings for each module; extended readme 2022-02-09 23:14:42 +01:00
Daniil Fajnberg bc9d2f243e renamed "closing" a pool to "locking" it 2022-02-08 23:09:33 +01:00
Daniil Fajnberg 012c8ac639 testing notes in readme 2022-02-08 16:43:44 +01:00
Daniil Fajnberg 8fd40839ee full unittest coverage for the `helpers` module 2022-02-08 16:40:13 +01:00
Daniil Fajnberg 36d026f433 more precise comments 2022-02-08 16:24:37 +01:00
Daniil Fajnberg 410e73e68b bugfix for `TaskPool._map`; usage example for `TaskPool` 2022-02-08 16:15:55 +01:00
Daniil Fajnberg 727f0b7c8b added full test coverage and docstrings for `TaskPool` as well as minor improvements 2022-02-08 14:30:42 +01:00
Daniil Fajnberg 63aab1a8f6 added full test coverage of `TaskPool` and further improved its `_map()` method 2022-02-08 13:29:57 +01:00
Daniil Fajnberg d48b20818f small improvement to the `TaskPool._map` args queue; added docstring to helper method 2022-02-08 12:23:16 +01:00
Daniil Fajnberg 3c69740c8d factored out the queue setup of `TaskPool._map` 2022-02-08 12:09:21 +01:00
Daniil Fajnberg 586023f722 fixed unittests; minor changes 2022-02-07 23:41:52 +01:00
Daniil Fajnberg 16eda31648 reworked the `_map` method to make use of an arguments queue; added docstrings to the `TaskPool` methods 2022-02-07 23:17:39 +01:00
Daniil Fajnberg 99ece436de docstrings 2022-02-07 19:26:20 +01:00
Daniil Fajnberg 4ea815be65 refactored `TaskPool._map`; fixed `TaskPool.apply`; helper functions in separate module; new exception class 2022-02-07 17:31:43 +01:00
Daniil Fajnberg ac903d9be7 full test coverage for `BaseTaskPool` 2022-02-07 14:23:49 +01:00
Daniil Fajnberg e8e13406ea new interrupt flag for `cancel_all` to prevent `_map()` from starting new tasks 2022-02-06 16:32:42 +01:00
Daniil Fajnberg 2d40f5707b docstrings for `BaseTaskPool` class 2022-02-06 15:00:47 +01:00
Daniil Fajnberg c0c9246b87 refactoring 2022-02-06 13:59:35 +01:00
Daniil Fajnberg ba0d5fca85 refactoring/renaming 2022-02-06 13:49:57 +01:00
Daniil Fajnberg b5eed608b5 refactoring; new `flush` method to clear memory of ended tasks 2022-02-06 13:42:34 +01:00
Daniil Fajnberg 2f0b08edf0 implemented working pool size limit; adjusted tests and examples; small renaming 2022-02-06 13:08:39 +01:00
Daniil Fajnberg a68e61dfa7 small test improvement 2022-02-05 22:28:19 +01:00
Daniil Fajnberg 9ec5359fd6 docstrings, refactorings, test adjustments 2022-02-05 22:26:02 +01:00
Daniil Fajnberg 3a27040a54 first couple of unittests for `BaseTaskPool` 2022-02-05 19:34:52 +01:00
Daniil Fajnberg a154901bdf some convenience methods; minor renaming 2022-02-05 18:28:30 +01:00
Daniil Fajnberg 3eae7d803f huge rework; two different task pool classes now 2022-02-05 18:02:32 +01:00
Daniil Fajnberg f45fef6497 usage example; pool close instead of gather 2022-02-04 19:23:09 +01:00
Daniil Fajnberg 7020493d53 func command, minor changes 2022-02-04 18:00:23 +01:00
Daniil Fajnberg ed376b6f82 refactoring, additional command, improvements 2022-02-04 17:41:10 +01:00
Daniil Fajnberg b3b95877fb client cli and usage example 2022-02-04 16:25:44 +01:00
Daniil Fajnberg 6a5c200ae6 working server and client 2022-02-04 16:25:09 +01:00
Daniil Fajnberg c9e0e2f255 first working draft 2022-02-04 11:07:02 +01:00
Daniil Fajnberg 2e57447f5c meta adjustments 2022-02-03 20:10:26 +01:00
Daniil Fajnberg 3d5d9bd8be Initial commit 2022-02-03 20:06:30 +01:00