Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pg_migrations/0001_create_inflight_activations.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- PostgreSQL equivalent of the inflight_taskactivations table
CREATE TABLE IF NOT EXISTS inflight_taskactivations (
CREATE TABLE IF NOT EXISTS {TABLE_NAME} (
id TEXT NOT NULL PRIMARY KEY,
activation BYTEA NOT NULL,
partition INTEGER NOT NULL,
Expand Down
4 changes: 4 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ pub struct Config {
/// The name of the postgres database to use for the inflight activation store.
pub pg_database_name: String,

/// The PostgreSQL table name for inflight task activations.
pub pg_table_name: String,

/// The path to the sqlite database
pub db_path: String,

Expand Down Expand Up @@ -285,6 +288,7 @@ impl Default for Config {
run_migrations: false,
pg_url: "postgres://postgres:password@sentry-postgres-1:5432/".to_owned(),
pg_database_name: "default".to_owned(),
pg_table_name: "inflight_taskactivations".to_owned(),
db_write_failure_backoff_ms: 4000,
db_insert_batch_max_len: 256,
db_insert_batch_max_size: 16_000_000,
Expand Down
Loading
Loading