Pool-cue

Latest version: v1.3.0

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.0

[1.3.0](https://github.com/skarre-r/pool-cue/compare/1.2.0...1.3.0) (2023-04-24)


Bug Fixes

* fix issues caused by awaiting calls to "loop.run_in_executor(...)" in the "run_in_thread_pool" method ([db79e51](https://github.com/skarre-r/pool-cue/commit/db79e5123db83259a7a9c80d4efdb73b20b6863b))
* lock threads to avoid conflicts when creating new sub-thread event loops in the 'run_in_thread_pool' method(s) ([05a5d91](https://github.com/skarre-r/pool-cue/commit/05a5d91e11abccecf9abc07c3519b91b4dd1f643))


Features

* configure the thread pool executor to use uvloop event loops in sub-threads ([1adc85d](https://github.com/skarre-r/pool-cue/commit/1adc85d08c7596ddb62c21e925f3ae96f08cf3d6))
* update the worker to use uvloop event loops ([11b7c22](https://github.com/skarre-r/pool-cue/commit/11b7c229c5eae6f4bd5a2a04c880939794b0cdce))

1.2.0

[1.2.0](https://github.com/skarre-r/pool-cue/compare/1.1.1...1.2.0) (2023-04-24)


Bug Fixes

* catch exceptions in the 'run_in_thread_pool' function(s) ([ffd4723](https://github.com/skarre-r/pool-cue/commit/ffd4723253daa10a7a50135ec855982694ef9848))
* catch exceptions in the msgpack serializer functions ([80e6576](https://github.com/skarre-r/pool-cue/commit/80e65768adcee87d2369b9fd9cabb24b14d79460))


Changes

* reduce the default 'keep_result' value in the worker settings to 5sec
* update the default 'close_context' method to shut down the thread pool executor without waiting for futures to finish
* rename the 'push_job_fn' context key to 'queue_fn'
* use job ids to handle jobs without children in the '_job_already_exists' method

1.1.1

[1.1.1](https://github.com/skarre-r/pool-cue/compare/1.1.0...1.1.1) (2023-04-20)


Bug Fixes

* update the 'generate job id' utility function to support hashing list keyword argument values ([7a3ef93](https://github.com/skarre-r/pool-cue/commit/7a3ef93c4f64364bdb81fdcd2dda9ec17d83b288))

1.1.0

[1.1.0](https://github.com/skarre-r/pool-cue/compare/1.0.1...1.1.0) (2023-04-20)


Bug Fixes

* change the '_delay' behaviour in the 'push job' method(s) to not sleep before adding the job to the queue ([0be9588](https://github.com/skarre-r/pool-cue/commit/0be9588719631a4814526c4476d7c44627e858a8))


Changes

* rename the 'run_in_thread_pool' keyword arguments to avoid conflicts with other kwargs

1.0.1

[1.0.1](https://github.com/skarre-r/pool-cue/compare/1.0.0...1.0.1) (2023-04-19)


Bug Fixes

* remove the default 'redis_host' value in queue settings class ([bfa9aaa](https://github.com/skarre-r/pool-cue/commit/bfa9aaab6a6dc29ec0e8f52ffa32a9c828fa89c3))


Changes

* add utility function to generate arq job ids
* move the worker context to a separate file & add methods to init/ close the worker context
* move the 'get/ push job' methods out of the 'Queue' class to make them available in the worker context
* rename the 'pool_cue.tasks' module to 'pool_cue.threading'

1.0.0

Features

* add 'Queue' class that can be used to interact with the queue/ worker(s) through redis ([6298c47](https://github.com/skarre-r/pool-cue/commit/6298c47215dcec7f1616ec980c52c226053ddaeb))
* add 'run_in_thread_pool' method that can be used to run tasks in subthreads ([70d4a67](https://github.com/skarre-r/pool-cue/commit/70d4a67a4788e36ef5330a5f6aa39afae582d831))
* add method(s) to create arq worker settings ([4349162](https://github.com/skarre-r/pool-cue/commit/434916273cf15b730d91c0d589751da9ce8f03b8))

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.