
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Free software: GNU Affero General Public License v3+
poetry add celery-aio-pool
pip
& PyPI.orgpip install celery-aio-pool
pip
& GitHubpip install git+https://github.com/the-wondersmith/celery-aio-pool.git
pip
& A Local Copy Of The Repogit clone https://github.com/the-wondersmith/celery-aio-pool.git
cd celery-aio-pool
pip install -e "$(pwd)"
Celery now supports the configuration of out-of-tree worker pool classes, allowing you to configure custom pools like celery-aio-pool
directly:
Set the environment variable CELERY_CUSTOM_WORKER_POOL
to the name of your desired worker pool implementation.
package:class
export CELERY_CUSTOM_WORKER_POOL='celery_aio_pool.pool:AsyncIOPool'
Start Celery with --pool=custom
to use the configured pool:
celery worker --pool=custom --loglevel=INFO --logfile="$(pwd)/worker.log"
To verify the pool configuration, use celery inspect stats
:
celery --app=your_celery_project inspect stats
-> celery@freenas: OK
{
...
"pool": {
...
"implementation": "celery_aio_pool.pool:AsyncIOPool",
...
celery-aio-pool
's Provided Patchercelery_aio_pool
in the same module where your Celery "app" is definedpatch_celery_tracer
utility is called before any other
Celery code is called"""My super awesome Celery app."""
# ...
from celery import Celery
# add the following import
import celery_aio_pool as aio_pool
# ensure the patcher is called *before*
# your Celery app is defined
assert aio_pool.patch_celery_tracer() is True
app = Celery(
"my-super-awesome-celery-app",
broker="amqp://guest@localhost//",
# add the following keyword argument
worker_pool=aio_pool.pool.AsyncIOPool,
)
NOTE: Our preferred packaging and dependency manager is Poetry. Installation instructions can be found here.
Clone the repo and install the dependencies
$ git clone https://github.com/the-wondersmith/celery-aio-pool.git \
&& cd celery-aio-pool \
&& poetry install --sync
Alternatively, if you prefer not to use Poetry, celery-aio-pool
is fully PEP-517
compliant and can be installed directly by any PEP-517-compliant package manager.
$ cd celery-aio-pool \
&& pip install -e "$(pwd)"
TODO: Coming Soon™
To run the test suite:
$ poetry run pytest tests/
TODO: Coming Soon™
FAQs
Celery worker pool with support for asyncio coroutines as tasks
We found that celery-aio-pool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.