Skip to content

[Bug]: SharedPostgresStorage does not initialize database #34

@pveierland

Description

@pveierland

What happened?

When following the example using SharedPostgresStorage, the database is not initialized with migrations, as is performed when using PostgresStorage::setup(&pool).await.unwrap();.

This means that when using the SharedPostgresStorage, an explicit call must first be made to PostgresStorage::setup.

Expected behavior

It is expected that either the setup is handled by SharedPostgresStorage, or that the example shows the explicit call to perform the setup sequence.

Steps to reproduce

https://docs.rs/apalis-postgres/1.0.0-beta.3/apalis_postgres/#shared-example

Minimal code example

Version

1.0.0-beta.x

Environment

  • OS: Linux skylab-x2 6.12.30 Prep for version 1 #1-NixOS SMP PREEMPT_DYNAMIC Thu May 22 12:29:54 UTC 2025 x86_64 GNU/Linux
  • Rust version: rustc 1.93.0-nightly (c86564c41 2025-11-27)
  • Cargo version: cargo 1.93.0-nightly (2a7c49606 2025-11-25)

Relevant log output

Additional context

Very cool to see all the progress being made on Apalis!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions