This project has been archived by its maintainers, and is no longer receiving any updates.
DEPRECATION WARNING
This repository is deprecated and in maintainence-only operation while we work on a replacement, please see this announcement for more information.
Although we have stopped integrating new contributions, we always appreciate security disclosures and patches sent to security@edx.org
edX Ecommerce Worker

The Celery tasks contained herein are used to implement asynchronous order fulfillment and other features requiring the asynchronous execution of many small, common operations.
Prerequisites
Python 3.x
Celery 4.x
RabbitMQ 3.5.x
Getting Started
Most commands necessary to develop and run this app can be found in the included Makefile. These instructions assume a working integration between the edX ecommerce service and the LMS, with asynchronous fulfillment configured on the ecommerce service.
To get started, create a new virtual environment and install the included requirements.
$ make requirements
This project uses Celery to asynchronously execute tasks, such as those required during order fulfillment. Celery requires a solution to send and receive messages which typically comes in the form of a separate service called a message broker. This project uses RabbitMQ as a message broker. On OS X, use Homebrew to install it.
$ brew install rabbitmq
By default, most operating systems don’t allow enough open files for a message broker. RabbitMQ’s docs indicate that allowing at least 4096 file descriptors should be sufficient for most development workloads. Check the limit on the number of file descriptors in your current process.
$ ulimit -n
If it needs to be adjusted, run:
$ ulimit -n 4096
Next, start the RabbitMQ server.
$ rabbitmq-server
In a separate process, start the Celery worker.
$ make worker
In a third process, start the ecommerce service. In order for tasks to be visible to the ecommerce worker, the value of Celery’s BROKER_URL setting must shared by the ecommerce service and the ecommerce worker.
Finally, in a fourth process, start the LMS. At this point, if you attempt to enroll in a course supported by the ecommerce service, enrollment will be handled asynchronously by the ecommerce worker.
If you’re forced to shut down the Celery workers prematurely, tasks may remain in the queue. To clear them, you can reset RabbitMQ.
$ rabbitmqctl stop_app $ rabbitmqctl reset $ rabbitmqctl start_app
License
The code in this repository is licensed under the AGPL unless otherwise noted. Please see LICENSE.txt for details.
How To Contribute
Anyone merging to this repository is expected to release and monitor their changes; if you are not able to do this DO NOT MERGE, please coordinate with someone who can to ensure that the changes are released.
Please also read How To Contribute.
Reporting Security Issues
Please do not report security issues in public. Please email security@edx.org.
Mailing List and IRC Channel
You can discuss this code in the edx-code Google Group or in the #edx-code IRC channel on Freenode.
Metadata
Release files for edx-ecommerce-worker 3.3.4
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 |
|---|---|---|---|---|
| edx-ecommerce-worker-3.3.4.tar.gz | 44.5 kB | Without provenance | Details for edx-ecommerce-worker-3.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edx_ecommerce_worker-3.3.4-py3-none-any.whl | Python 3 | none | any | Details for edx_ecommerce_worker-3.3.4-py3-none-any.whl |
Total release size: 81.8 kB
Release files / edx-ecommerce-worker-3.3.4.tar.gz
| Download URL | edx-ecommerce-worker-3.3.4.tar.gz |
|---|---|
| Size | 44.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1e279b8788b17c24a2f275705863431b71e0b0973d85f8a7843b4da344a9b53
|
|
BLAKE2b-256 checksum How to use checksums |
e33356acb4ae3a044f93fdf09b0a23c24b70a67d1af0b9f5b71072a4a37cf0b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / edx_ecommerce_worker-3.3.4-py3-none-any.whl
| Download URL | edx_ecommerce_worker-3.3.4-py3-none-any.whl |
|---|---|
| Size | 37.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71e22e90b762e1afb91104a67c961e8051b3757eda22d5a09d402e494f237f41
|
|
BLAKE2b-256 checksum How to use checksums |
524aa32bd449415352ed1538013989a192a9e5cdcb5f60fa695d1ee2afad0231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for edx-ecommerce-worker 3.3.4
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.