No description
- Python 99.5%
- Shell 0.2%
- Mako 0.2%
- Dockerfile 0.1%
|
|
||
|---|---|---|
| .github/workflows | ||
| tests | ||
| vela | ||
| .coveragerc | ||
| .dockerignore | ||
| .gitignore | ||
| alembic.ini | ||
| asgi.py | ||
| Dockerfile | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| renovate.json | ||
| style.sh | ||
| tox.ini | ||
Vela
BPL Retailer Rewards Management API
configurations
- create a
local.envfile in the root directory - add your configurations based on the environmental variables required in
vela.core.config.Settings
running
poetry install
api run
poetry run python asgi.pyorpoetry run uvicorn asgi:app --port=8000
reward adjustment worker (rq)
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES poetry run python -m vela.core.cli task-worker- this worker deals with calling polaris to update an account holder's balance via an HTTP call.
Running the command with the above environment variable is a work around for this issue. It's a mac only issue to do with os.fork()'ing which rq.Worker utilises.