-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log duration and completed timestamp (#824)
- Loading branch information
Showing
5 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
...d861c0a5dff7f7523874d79b883bec5fc208.json → ...d81a8c88022893c813d0255723a3d761a3ce.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
DATABASE_URL:=postgresql://postgres:postgres@localhost:5432/postgres | ||
LLM_SERVICE_HOST_PORT=http://localhost:8000 | ||
RUST_LOG=debug | ||
SQLX_OFFLINE:=true | ||
|
||
fmt: | ||
cargo sqlx prepare --database-url ${DATABASE_URL} | ||
cargo +nightly fmt --all | ||
cargo clippy | ||
|
||
run: | ||
LLM_SERVICE_HOST_PORT=${LLM_SERVICE_HOST_PORT} RUST_LOG=${RUST_LOG} cargo run | ||
|
||
run-migrations: | ||
sqlx migrate run | ||
sqlx migrate run --database-url ${DATABASE_URL} | ||
|
||
run-postgres: | ||
docker compose up -d postgres | ||
|
||
test: | ||
cargo test -- --ignored |
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
3 changes: 3 additions & 0 deletions
3
inference-gateway/migrations/20240531145654_timestamps_extension.sql
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,3 @@ | ||
CREATE EXTENSION IF NOT EXISTS timeseries CASCADE; | ||
ALTER TABLE inference.requests ADD COLUMN completed_at timestamp with time zone not null DEFAULT now(); | ||
ALTER TABLE inference.requests ADD COLUMN duration_ms integer not null default 0; |
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