Skip to content

Commit

Permalink
ref: Cleanup references to Celery
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed May 12, 2023
1 parent 817b8de commit cdff2d5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ ipython_config.py
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

Expand Down
1 change: 0 additions & 1 deletion server/.env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ POLAR_GITHUB_CLIENT_SECRET="fakefakefakefakefakefakefakefakefakefake"
POLAR_CORS_ORIGINS='["http://127.0.0.1:3000", "http://localhost:3000", "http://test"]'

POLAR_DEBUG="false"
POLAR_CELERY_TASK_ALWAYS_EAGER="true"
POLAR_TESTING=1
8 changes: 4 additions & 4 deletions server/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"name": "Worker",
"type": "python",
"request": "launch",
"module": "celery",
"module": "arq",
"args": [
"-A",
"run_worker:app",
"worker",
"run_worker.WorkerSettings",
"--watch",
"polar",
],
"justMyCode": false,
}
Expand Down
2 changes: 1 addition & 1 deletion server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ poetry run task db_migrate
# Fast API backend
poetry run task api

# (in another terminal) Start the celery worker
# (in another terminal) Start the arq worker
poetry run task worker

# Run the tests
Expand Down
6 changes: 0 additions & 6 deletions server/polar/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ class Settings(BaseSettings):
REDIS_HOST: str = "127.0.0.1"
REDIS_PORT: int = 6379

# Celery
CELERY_BROKER_URL: str = "redis://127.0.0.1:6379"
CELERY_BACKEND_URL: str = "redis://127.0.0.1:6379"
# Once True (testing) all Celery tasks are run synchronously
CELERY_TASK_ALWAYS_EAGER: bool = False

# Github App
GITHUB_APP_IDENTIFIER: str = ""
GITHUB_APP_WEBHOOK_SECRET: str = ""
Expand Down

0 comments on commit cdff2d5

Please sign in to comment.