Skip to content

Commit

Permalink
Add celery worker make targets (#1925)
Browse files Browse the repository at this point in the history
* put phonies all together

* ok to have lots of phonies
  • Loading branch information
sastels authored Jul 11, 2023
1 parent 9fcdd9f commit 05705b8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ freeze-requirements:
poetry lock --no-update

.PHONY: test-requirements
test-requirements:
poetry lock --check

.PHONY: coverage
Expand All @@ -46,5 +47,25 @@ smoke-test:
cd tests_smoke && poetry run python smoke_test.py

.PHONY: run
run:
run: ## Run the web app
flask run -p 6011 --host=0.0.0.0

.PHONY: run-celery
run-celery: ## Run the celery workers
./scripts/run_celery.sh

.PHONY: run-celery-clean
run-celery-clean: ## Run the celery workers but filter out common scheduled tasks
./scripts/run_celery.sh 2>&1 >/dev/null | grep -Ev 'beat|in-flight-to-inbox|run-scheduled-jobs|check-job-status'

.PHONY: run-celery-sms
run-celery-sms: ## run the celery workers for sms from dedicated numbers
./scripts/run_celery_sms.sh

.PHONY: run-celery-beat
run-celery-beat: ## Run the celery beat
./scripts/run_celery_beat.sh

.PHONY: run-celery-purge
run-celery-purge: ## Purge the celery queues
./scripts/run_celery_purge.sh

0 comments on commit 05705b8

Please sign in to comment.