stem_postgres 0.1.2
stem_postgres: ^0.1.2 copied to clipboard
Postgres broker, result backend, and scheduler utilities for Stem.
Changelog #
0.1.2 #
- Updated internal package constraints to accept the in-progress
stemprerelease and matching adapter-test prereleases during workspace development.
0.1.1 #
- Updated Ormed dependencies to 0.2.0 for the Postgres adapter stack.
- Simplified explicit Postgres URL datasource bootstrapping to use the new Ormed code-first datasource helper path.
- Removed explicit
ensurePostgresDriverRegistration()calls from Stem Postgres runtime and seed paths by routing config-driven datasource creation through the new helper-based bootstrap code. - Updated Postgres workflow stores to honor caller-provided run ids, keeping adapter behavior aligned with workflow runtime metadata/manifests and the shared workflow-store contract suite.
0.1.0 #
- Normalized
postgresResultBackendFactoryto accept a positionaluriargument, matching the adapter factory style used across packages. - Updated Postgres adapter wiring to use the new factory signature.
- Added workflow run lease tracking and claim/renew helpers to distribute workflow execution safely across workers.
- Fixed worker heartbeat lookups by restoring soft-deleted heartbeat rows on upsert.
- Added DataSource-based initialization that runs migrations before use, and
introduced async
fromDataSourcehelpers across Postgres adapters (including workflow stores). - Migrated the Postgres adapter to Ormed with generated registry/migrations for schema management.
- Added a local seed runtime to run Postgres seeders without requiring ormed_cli.
- Hardened lock-store timing/TTL evaluation for more reliable coordination.
- Updated Ormed dependencies to 0.1.0.
- Added workflow run lease migrations plus runnable discovery and metadata paging updates in the workflow store.
- Migrated IDs to UUID v7 and simplified datasource/connection handling.
- Added workflow store contract coverage and refreshed adapter docs/tests.
- Updated dependencies.
- Wired DataSource and seed runtime initialization to use the shared
stemLoggerby default, while still allowing explicit logger injection. - Hardened datasource/seed configuration overrides to safely merge nullable driver options.
0.1.0-alpha.4 #
- Added durable watcher persistence and atomic event resolution so Durable Workflows resume with stored payloads and metadata.
- Refreshed workflow run bookkeeping:
saveStepnow acts as a heartbeat, rewind/auto-version checkpoints are persisted with accurate ordering, and suspension records trackresumeAt/deadline. - Implemented chord-claiming improvements and claim-timer cleanup to keep Postgres queues healthy during purges and consumer shutdown.
- Shipped
postgresWorkflowStoreFactoryso CLI tooling and integration tests can bootstrap Postgres-backed Durable Workflows with a single helper. - Added lock-store contract coverage for
PostgresLockStore, ensuring the semantics required byTaskOptions.uniqueand scheduler coordination stay portable across adapters.
0.1.0-alpha.3 #
- Initial release containing Postgres broker, result backend, scheduler stores,
and adapter contract tests extracted from the core
stempackage.