Celery Executor
A concurrent.futures.Executor implementation using Celery as backend
- Free software: Apache Software License 2.0
- Documentation: https://celery-executor.readthedocs.io.
Features
The package provides a CeleryExecutor implementing the interface of
concurrent.futures.Executor
>>> from celery_executor.executors import CeleryExecutor
>>> executor = CeleryExecutor()
>>> for result in executor.map(str.upper, ['one', 'two', 'three']):
... print(result)
ONE
TWO
THREE
Beware that the Executor.map() interface can yield the results out of order,
if later ones got to finish first.
Caveats
This executor frees the developer to the burden of mark every single task function with the Celery decorators, and to import such tasks on the Worker beforehand. But does not frees from sending the code to the Worker.
The function sent to CeleryExecutor.map() should be pickable on the client
(caller of .map() or .submit()) and should be unpickable on the Celery
Worker handling the "Task" sent. Is not possible to send lambdas for example.
As Celery assumes that is to the developer to put the needed code on the Worker,
be sure that the function/partial code sent to CeleryExecutor to exist on the
Worker.
To Be Done
- Document the
CeleryExecutor.__init__()nonstandard extra optionspredelay,postdelayandapplyasync_kwargs. - Test behaviours of canceling a Task when canceling a Future
- Test behaviours of shutting down executors and trying to send new tasks
- Find a way to test the RUNNING state of Celery Tasks, as its events are not propagated by the test worker Celery provides
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
======= History
0.1.0 (2018-05-25)
- First release on PyPI.
Metadata
Release files for celery-executor 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| celery-executor-0.2.0.tar.gz | 12.6 kB | Without provenance | Details for celery-executor-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| celery_executor-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for celery_executor-0.2.0-py2.py3-none-any.whl |
Total release size: 17.2 kB
Release files / celery-executor-0.2.0.tar.gz
| Download URL | celery-executor-0.2.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
141f4de4175df60e00b1534b2243e0d8bedda08be0cc55bc1a9e3dc2a169fbca
|
|
BLAKE2b-256 checksum How to use checksums |
ba304791f9180276c36f2f0a7980fa890b477813dc9c4d6434d8418b0b338936
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / celery_executor-0.2.0-py2.py3-none-any.whl
| Download URL | celery_executor-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1ca778c0a59652bf4480af1489e9ba1315d38315ea9939c6ef5df348c3e4ba08
|
|
BLAKE2b-256 checksum How to use checksums |
71c843caf397e90a0cedb93811aedfe88ce6df9c4ab9eb44881c89b313b59f40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for celery-executor 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.