-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add throttle as a global config (#1547)
* cursor v1 * fix default * cleanup * add docs for worker * fix bulk and worker * add logs * better throttle logs * remove warn * better errors * better error displau * fmt * clippy * fix test
- Loading branch information
1 parent
5e2eeb3
commit a4efecb
Showing
18 changed files
with
511 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Run the backend without worker mode, i.e. only enabling single-shot | ||
# verifications via the /v1/check_email endpoint. | ||
.PHONY: run | ||
run: | ||
cd backend && cargo run --bin reacher_backend | ||
|
||
|
||
# Run the backend with worker mode on. This enables the /v1/bulk endpoints. | ||
# Make sure to have a Postgres DB and a RabbitMQ instance running. | ||
.PHONY: run-with-worker | ||
run-with-worker: export RCH__WORKER__ENABLE=true | ||
run-with-worker: export RCH__WORKER__RABBITMQ__URL=amqp://guest:guest@localhost:5672 | ||
run-with-worker: export RCH__STORAGE__POSTGRES__DB_URL=postgresql://localhost/reacherdb | ||
run-with-worker: run | ||
|
||
.PHONY: run-with-commercial-license-trial | ||
run-with-commercial-license-trial: export RCH__COMMERCIAL_LICENSE_TRIAL__URL=http://localhost:3000/api/v1/commercial_license_trial | ||
run-with-commercial-license-trial: run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.