No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 99.5%
  • Shell 0.2%
  • Mako 0.2%
  • Dockerfile 0.1%
Find a file
backwardspy 02778b2219
Some checks failed
test / test (push) Failing after 1s
feat: replace black/isort with ruff formatting (#235)
2024-04-24 16:30:28 +01:00
.github/workflows feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
tests feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
vela feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
.coveragerc Migrate from pipenv to poetry 2022-09-20 17:51:13 +01:00
.dockerignore Migrate from pipenv to poetry 2022-09-20 17:51:13 +01:00
.gitignore BPL-80: removed sql file and amended gitignore 2021-06-17 10:35:01 +01:00
alembic.ini Upgrade CI, Remove Linkerd Await (#204) 2024-04-18 13:48:12 +01:00
asgi.py Migrate from pipenv to poetry 2022-09-20 17:51:13 +01:00
Dockerfile Upgrade CI, Remove Linkerd Await (#204) 2024-04-18 13:48:12 +01:00
poetry.lock feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
pyproject.toml feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
README.md Migrate from pipenv to poetry 2022-09-20 17:51:13 +01:00
renovate.json chore: Configure Renovate (#203) 2024-04-18 14:16:20 +01:00
style.sh feat: replace black/isort with ruff formatting (#235) 2024-04-24 16:30:28 +01:00
tox.ini CI Improvements 2021-07-05 22:32:17 +00:00

Vela

BPL Retailer Rewards Management API

configurations

  • create a local.env file 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.py or poetry 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.