Skip to content

Meerschaum 5

5.2.2

Supported finalization of detached Syncing Engine runs (mrsm reconcile runs / mrsm abandon run <id>), clearer detached-run hints on Pipe rename refusal, and a fix for the Tokio runtime teardown panic and run-finalization path (#293).

  • Finalize provably detached engine runs (mrsm reconcile runs and mrsm abandon run <id>).
    Inspect unfinished engine runs (finished IS NULL) and mark provably detached runs failed/abandoned with a finish timestamp and reason—only after proving the owning process is gone (same host with a dead PID, or no active run-admission/pipe leases plus stale activity). Live and unprovable runs are always refused. Supports --dry / --dry-run previews, --nopretty JSON output, dead-holder pipe lease cleanup, compressed TimescaleDB engine hypertable chunks, and api: instances (GET /engine/leases, POST /engine/runs/{run_id}/finalize).
mrsm reconcile runs -i sql:main --dry
mrsm abandon run <run_id> -i sql:main
  • Actionable detached-run hints when rename pipe refuses.
    When an unfinished run blocks mrsm rename pipe or pipe.rename(...), the refusal now distinguishes an active run from a provably detached run and prints the exact mrsm abandon run / mrsm reconcile runs --dry command to resolve it.

  • Prevent Tokio runtime teardown panics and harden run finalization.
    Shared registry/hook/callback handles now borrow the runtime handle (Session::shared()) instead of owning the Tokio Runtime, RunAdmission explicitly aborts its heartbeat and releases/disarms its lease on return, Session::shutdown() drains in-flight lease releases before pool teardown, continuous loops join cleanly before exit, and record_finished_run retries transient write errors with a header-only fallback so finished runs are not left with finished IS NULL.

5.2.1

Atomic single-transaction Pipe rename (#290) and fail-closed --fail-on-flush deploy preflight across Compose and Syncing Engine plans, plus structured JSON coverage output for mrsm compose explain --nopretty (#289).

  • Atomic single-transaction Pipe rename (mrsm rename pipe and pipe.rename(...)).
    Rename a registered Pipe's keys (--to-connector, --to-metric, --to-location) and optionally its physical target table (--target) in one database transaction while keeping its pipe_id, stored rows, operational Syncing Engine state (definition hash, dirty ledger, edge cursors, sync status, sync corrections), and historical run/event/metric attribution intact—preserving compressed TimescaleDB hypertables in place without copying or resyncing. Exposed across SQL instances, POST /pipes/.../rename + APIConnector, Python Pipe.rename(...), and mrsm rename pipe (rename pipes) with --dry / --dry-run previews, remaining-reference scanning, and --nopretty JSON output. See Renaming.
mrsm rename pipe -c sql:src -m old_metric -i sql:main \
    --to-metric new_metric --target new_metric_table --dry
  • Fail closed when Compose preflight cannot plan a project.
    mrsm compose explain --fail-on-flush (--fail-on-rebuild) now exits non-zero whenever any project with eligible pipes cannot be planned—including dependency cycles, unreachable or unreadable instances, failed registration fetches, unreadable Syncing Engine state, or broken multi-project include: trees—naming the project, affected instance, and cause. Plain compose explain stays diagnostic-only (exit 0, surfacing [PREFLIGHT ERROR] in the preflight banner), and empty, jobs-only, or temporary-only projects remain valid. See Compose.

  • Positive pipe coverage and structured --nopretty JSON output.
    Every eligible proposed pipe must be positively accounted for in the resulting plan. Pass --nopretty to emit a single JSON document with per-project status (planned, empty, failed), eligible/planned/unplanned pipe counts and references, blocking flushes, definition changes, typed preflight errors, tree errors, lint findings, and engine plans.

mrsm compose explain --fail-on-flush --nopretty
  • Side-effect-free cycle checks on new SQLite/GeoPackage instances.
    Proposed pipes targeting a local SQLite or GeoPackage file that does not exist yet are planned against an empty in-memory state—catching dependency cycles and accounting for every eligible pipe without creating the database file on disk.

  • Fail closed on unreadable engine state in plan pipes and plan pipelines.
    PlannedNode now records engine state-read failures (definition_hash / watermark), and --fail-on-flush fails closed on unreadable state or upstream_failed nodes across compose explain, plan pipes, and plan pipelines.

5.2.0

Safer definition changes by default, opt-in atomic shadow-table flushes, Compose deploy preflight, per-pipe sync leases, and transactional pipe writes for Rust plugins.

Before upgrading from 5.1.x

  • Definition changes no longer trigger automatic destructive flushes. When a pipe's SQL query or key columns change without an explicit flush policy, the Syncing Engine now syncs forward incrementally, logs a warning, and advances the stored definition hash. Opt in per pipe with flush: { mode: clear } (or upsert) or globally via system.engine.flush.auto: true.
  • Canonical flush vocabulary. Engine plans, events, locks, and JSON payloads now report flush and flush_pending (with rebuild* aliases still accepted on parameters, config keys, CLI flags, and deserialization).
  • Declared dtypes alter in place. Changing a column's type in pipe.dtypes alters that column directly to the target SQL type and fails cleanly on uncastable rows instead of silently widening to TEXT.

Highlights

  • Non-destructive definition changes & opt-in flush policy.
    Configure per-pipe flush behavior with nested flush parameters (mode: clear | upsert, swap: true | false) or globally under system.engine.flush. Legacy rebuild_mode and system.engine.auto_rebuild remain accepted aliases. See Parameters and Pipelines.
parameters:
  flush:
    mode: clear
    swap: true
  • Atomic shadow-table flush & swap.
    Clearing flushes and unbounded mrsm flush pipes build into a shadow table (_mf_...) and swap it into place atomically on PostgreSQL, PostGIS, TimescaleDB, SQLite, MySQL, MariaDB, DuckDB, and non-partitioned MSSQL—preserving live reads while building and dropping the shadow on failure. Set flush: { swap: false } to clear in place when views or foreign keys depend on the table.

  • Consent guardrails for background jobs & interactive resolution.
    Background jobs, daemons, and non-TTY sessions can no longer clear unconfigured pipes even when invoked with --force / --yes. Interactive terminal syncs prompt to flush (y), keep pending (n), or accept the new definition (a), while --skip-flush, mrsm verify pipes, and bounded --begin/--end syncs dismiss flush_pending cleanly.

  • Compose & pipeline deploy preflight.
    mrsm compose explain plans proposed pipe definitions read-only and highlights definition changes and pending flushes. Pass --fail-on-flush (--fail-on-rebuild) to compose explain, plan pipes, or plan pipelines in CI to fail on destructive flushes or unresolved flush_pending nodes. See Compose.

mrsm compose explain --fail-on-flush
mrsm plan pipelines daily -i sql:local --fail-on-flush
  • Web Console quick-actions for pending flushes.
    On Pipelines, nodes in flush_pending expose Flush and Accept definition actions in the node inspector and Plan modal, gated on pipe write permissions and locks. See Web Console.

  • Permission-scoped pipe writes inside native Rust plugin transactions.
    Compiled and single-file Rust plugins can now call tx.sync_pipe, tx.sync_pipe_with, and tx.read_pipe inside host::transaction(...) on PostgreSQL and SQLite—enforcing pipe permissions, team scopes, protected connectors, and locks while keeping raw SQL writes denied under --secure. See Advanced Rust Plugins.

  • Nested upsert configuration & per-pipe sync leases.
    Configure upsert: { changed_only: true } (keeping upsert_changed_only as an alias; Pipe.upsert returns bool in Python). Unbounded mrsm flush pipes, Engine::sync_pipe, and bare Python Pipe.sync() now acquire the same per-pipe lease as pipeline runs to prevent concurrent write races. See Parameters and Access and Locks.

5.1.x Releases

Read 5.1.0 – 5.1.7 release notes

5.1.7

  • Install packaged Rust plugins without Cargo.
    mrsm install plugin downloads a matching prebuilt library when the plugin publisher provides one. Other targets use the source archive. See publishing a Cargo plugin.

  • Build typed Cargo plugins without Polars.
    New Cargo packages from mrsm bootstrap plugin use the lighter SDK. To opt in for an existing plugin, set meerschaum-plugin = { version = "5.1.7", default-features = false } in its manifest. The plugin can still exchange typed Arrow batches and call host services. Existing manifests retain the kernel-backed SDK.

In a clean Linux x86-64 release build of MicroMeerschaum with six Cargo jobs and dependencies already downloaded, opting in cut build time from 6m 04s to 2m 11s. The plugin library shrank from 44.8 MiB to 15.5 MiB.

5.1.6

  • Reduce WAL from PostgreSQL syncs.
    Frame updates and upserts of up to 1,024 rows use bound arrays. Larger patches use a transaction-local staging table that PostgreSQL removes after the merge. SQL-to-SQL merges use unlogged staging within their transaction on PostgreSQL, PostGIS, and TimescaleDB.

  • Expire engine history once per SQL instance.
    TimescaleDB drops whole chunks during automatic expiry and keeps the chunk containing the cutoff. Sync metrics inherit system.engine.run_history_days. Set metrics_retention_days under system.engine to keep a different window, or set it to 30 before upgrading to retain the previous policy. Restoring expired history requires a backup. See Sync metrics.

  • Choose which loop laps to store.
    Set system.engine.persist_skipped_laps: false to omit successful all-skipped laps from run history. Live events and job heartbeats still report those laps.

  • Share Python workers and job hosts.
    Callback-based stream pipes on one connector can opt into stream.shared_worker. Use : --loop --independent-laps to run several actions in one job with separate intervals and retries. Linux worker recycling now includes swapped private pages in its memory limit. See Continuous mode and Background jobs.

  • Finish native plugin migrations cleanly.
    A native plugin owns its name, including sync hooks. Meerschaum warns once when it shadows a Python plugin and reports a fallback if the native plugin fails to load. See Rust plugins.

  • Bound sync hooks and their telemetry.
    Hook writes keep their latest sync status and skip the metrics queue. Set system.engine.sync_hook_timeout_seconds to adjust the five-second limit for each hook phase.

  • Apply retention and compression edits.
    A bare --end '16 days ago' now advances every midnight. clear pipes prints the resolved bounds. TimescaleDB syncs apply declared chunk widths to future chunks and reconcile the columnstore policy with compress.after.

  • Report incomplete job deletions.
    delete jobs removes named, retired job directories, reports missing names, and cleans up the installed link for a scoped systemd unit.

5.1.5

Before upgrading

  • Preview five-field cron schedules.
    Use 5.1.5 to check upcoming runs before rolling it out. A job can now run on a date that earlier versions skipped. Both plain and zoned schedules are affected. A quarterly 03:00 UTC job started on November 24 after 03:00 now runs on January 1, then April 1. Earlier versions skipped January.
mrsm show schedule '0 3 1 1,4,7,10 *' 4

Fixes

  • Keep elevation on PostGIS updates.
    PostGIS table inspection preserves Z, M, and ZM dimensions on geometry and geography columns. Ordinary SQL-to-SQL sync updates an existing aggregated 3D target when only elevation changes under normal dtype enforcement.

  • Keep console team choices across reloads.
    Administrators default to All teams (Admin) on initial login. Selecting Everyone previews that team's view, and an explicit choice persists after reload. An empty instance selector explains the available choices.

  • Use the exact connector in SDK lookups.
    The SDK refreshes a user and a token's owner from the exact connector instance supplied, even when another database shares the same connector label.

  • Fix Windows hangs and preserve drive letters in plugin paths.
    Windows users can run mrsm show actions with Python plugins installed, access plugin routes and the Dash console after starting the API, and use drive-letter paths in MRSM_PLUGINS_DIR.

  • Handle daylight saving time in cron schedules.
    The Python scheduler honors recognized local abbreviations such as EST and EDT across daylight saving time on systems that support abbreviations. Starting a wildcard-hour cron during a repeated hour keeps the remaining runs in both occurrences of the hour. A specific time in a skipped hour runs right when the clock jumps past the gap. See Schedules.

  • Return errors in the Rust transaction example.
    The native Rust plugin transaction example shows how to return an error on an unsuccessful statement so earlier writes roll back. See Advanced Rust Plugins.

  • Expand release checks.
    Release checks now cover an isolated team member registering, using, and revoking a scoped token with a live Valkey cache. They also verify existing 3D rows and persisted data across version upgrades.

5.1.4

  • Register and manage tokens from isolated teams.
    Isolated team members can list and manage their tokens in the Web Console. Register saves the token to the API server's store and shows its credentials in the result dialog.

5.1.3

Patch release making untagged (Everyone) pipes and saved Pipelines on team-reserved instances usable by the reserved teams with no backfill.

  • Use untagged pipes on reserved instances.
    On any instance connector with teams: [...], Everyone now covers members of the reserved teams—including isolated teams, terminals, jobs, and MCP clients. Pipes and saved Pipelines from mrsm compose, plugins, CLI, or ported databases work immediately without rewriting stored access (Reserve an instance for teams).
connectors:
  sql:
    observations:
      flavor: sqlite
      database: observations.db
      teams: [wetlands, water_quality]
  • Roles, locks, and live updates apply automatically.
    Reserved-team managers can edit access, lock/unlock, and view private untagged pipes, while per-pipe owners, private visibility, owner-only edits, and locks hold as before. Visibility everyone covers every reserved team, and reservation edits, renames, or deletions take effect on the next request (Access and Locks).

  • Clearer console views.
    The Access dialog lists which teams Everyone covers on a reserved instance, My teams includes those untagged pipes, and the Team switcher matches what isolated members see.

5.1.2

Maintenance release: leaner Docker images that share layers, stricter non-admin SQL checks, faster API reads on large SQL instances, and console, web terminal, and sync fixes.

Before upgrading from 5.1.1

  • Non-admin SQL checks are stricter. Non-admin queries and pipe definitions over the API or MCP are now refused if any SQL dialect would parse them as multi-statement or mutating (such as ; inside $$...$$, or a write keyword after # or space-less --). Admins and local mrsm commands are unaffected.
  • Docker images always run as 1000:1000. Release images no longer inherit the build host's UID/GID.
  • Standalone SQL port values must be integers. Values like abc, true, or 5432.0 are refused instead of silently falling back to a default port. If you set a uri, Meerschaum uses the URI's port.

Highlights & Fixes

  • Leaner Docker images with shared layers.
    full, rust-full, slim, and rust now share common layers (mrsm, the Python wheel, and the Rust compiler snapshot) and keep OS layers stable across patch releases, so docker pull downloads only what changed.
docker pull bmeares/meerschaum:5.1.2-full
  • Smaller mrsm binary.
    Release binaries and wheels drop unused Arrow/Polars features and strip symbol tables (~111 MB vs. ~135 MB). Panic backtraces still show the error message and source location.

  • Faster API reads on large SQL instances.
    Pipe data and CSV requests now look up a single pipe by key instead of scanning the full catalog on SQL and Valkey instances.

  • Hardened SQL comment checks.
    API and MCP SQL validation checks every dialect's comment syntax so internal tables hidden behind #, --, or nested /* */ comments are blocked everywhere.

  • Console & web terminal fixes.

  • Console calls to the API ignore HTTP_PROXY and redirects so session credentials stay local.
  • Job log streams renew their session authorization while open and stop immediately if credentials are rotated or revoked.
  • The Users & Teams page follows the selected team in the team switcher (choose All teams (Admin) to manage everyone).
  • Isolated team permissions are computed in one place across all console pages.
  • Web terminal fixes: a refused window no longer blocks future windows, API-only panes set TERM, and closed sessions stop reconnecting.

  • Sync, job, and database fixes.

  • Remote action results: Log streams wait up to 2 seconds for a finished job's supervisor to save its result (and clients fall back to reading the saved result), eliminating spurious No result available. replies on busy hosts.
  • Startup pauses: Pausing a job while it is still starting keeps its supervisor active so it can still stop cleanly when the executor exits.
  • SQLite / GeoPackage schema reload: Pooled connections reload table schemas after a sync adds columns, preventing newly added columns from reading back with literal quotes.
  • In-place syncs: A pipe whose source is the engine's home database but whose instance is elsewhere no longer runs in-place on the source database.
  • Engine metrics & Oracle: Dropped sync metrics now log a rate-limited warning instead of vanishing silently, and Oracle instances keep internal table readiness across index DDL.

  • Switched to released sqlx 0.9.1 & contributor cleanups.
    Dropped the temporary sqlx git patch in Cargo.toml, consolidated Rust integration tests from 411 binaries down to 45 suites, split oversize Rust modules, and added scripts/check_architecture.py, GLOSSARY.md, CODING_STANDARDS.md, and docs/adr/.

5.1.1

Maintenance release with console UX improvements, credential handling fixes in stack.yaml, and Docker stack / isolated-team fixes.

Before upgrading from 5.1.0

  • Docker stacks: run mrsm stack up -d after upgrading so api mounts the public executor directory at /run/meerschaum/executors/desired instead of /meerschaum/executors/desired. Any root-owned /meerschaum/executors placeholder left by 5.1.0 is automatically moved aside to .executors.root-owned-<n>.
  • Clean up expanded stack.yaml secrets: if an earlier mrsm edit config stack or write_config() expanded credentials into stack.yaml, replace them with MRSM{...} references (e.g. MRSM{!meerschaum:connectors:sql:main} or <DOLLAR>POSTGRES_PASSWORD).

Highlights & Fixes

  • Team switcher in the web console.
    Administrators and multi-team members now have a Team dropdown next to Instance to view the console as a specific team (or Everyone). Instances, pipes, connectors, plugins, and jobs narrow to that team's view without ever escalating permissions; Actions and the web terminal pause until returning to All teams.

  • Nested Pages menu.
    Plugin page groups with multiple pages now collapse into sections with page counts (groups with >3 pages start collapsed unless active), drop repeated prefixes, nest sub-paths, and filter by the viewer's allowed plugins.

  • Balanced Overview without Pipelines.
    The Overview page keeps Pipes and Connectors balanced across the layout when no Pipelines or syncs exist yet.

  • Preserve MRSM{...} references in stack.yaml.
    Generating stack.yaml no longer expands references inside lists (ports, healthchecks, Grafana data sources), and write_config({'stack': get_config('stack')}) preserves MRSM{!meerschaum}, MRSM{!system}, and MRSM{!api} instead of writing plaintext secrets.

  • Externalize secrets for custom API services.
    Any Compose service with MRSM_CONFIG or MRSM_PATCH (such as api-sra alongside api) now writes secrets to stack/secrets/<service>/ via MRSM_CONFIG_FILE / MRSM_PATCH_FILE on 5.1+ images, and cleans up files when a service is removed.

  • Fix /jobs HTTP 503 on upgraded 5.1.0 Docker stacks.
    Moved the host executor mount from /meerschaum/executors/desired to /run/meerschaum/executors/desired (MRSM_EXECUTOR_DESIRED_DIR), pre-created /meerschaum/executors as UID 1000 in all images, and auto-repaired empty root-owned placeholders on startup.

  • Protect team-reserved connectors from host MRSM_CONFIG.
    Connectors reserved for a team (teams: [...]) in an API instance's config are no longer overwritten by same-named host connectors passed through MRSM_CONFIG (MRSM_PATCH still overrides). New team also verifies config writability before creating a database.

  • Fix isolated-team instance fallback and policy warnings.
    When api:permissions:instances blocks an isolated team's default instance, console pages keep that instance and show one clear alert naming allow_multiple_instances / allowed_instance_keys instead of falling back to sql:main. Creating or editing a team with a blocked instance warns immediately.

  • Propagate Compose profiles to grafana_readonly.
    grafana_readonly inherits profiles from db and grafana (with required: false on grafana's dependency when profiles differ), and mrsm doctor treats a completed exit-0 grafana_readonly container as healthy.

5.1.0

Security release introducing isolated team execution, read-only Grafana and file-based stack secrets, native Rust plugin SQL/transaction helpers, and immutable sync strategies. See Teams on One Instance and Team Execution Environments.

Before upgrading from 5.0.x

  • Upgrade the CLI, API host, and Python meerschaum package in Team worker interpreters together (5.1.0+ required). On a 5.0.x --user install, upgrade with python3 -m pip install --user --upgrade meerschaum.
  • Review stack:grafana:readonly_schemas if dashboards read schemas outside sql:main's owner, then run mrsm stack up -d to apply the read-only Grafana role, Valkey password, and secret files.
  • Isolated Team commands/terminals require Linux 6.12+ (Landlock ABI 6) and TCP connectors (Unix sockets are denied).

Highlights

  • Isolated teams, per-team databases, and Grafana orgs.
    Create isolated teams with their own PostgreSQL database/schema, roles, connectors, plugin allowlists, and auto-provisioned Grafana orgs via the console or mrsm bootstrap teams.
mrsm bootstrap teams
  • Sandboxed team execution & optional remote executors (Linux).
    Isolated team plugins, jobs, and terminals run with team-only configs, allowlisted environments, per-team venvs, and Landlock + seccomp isolation (system.engine.python_team_sandbox: auto | require | require_sockets | off) with optional CPU/memory/disk/egress caps. Administrators can also assign a team to a generated Stack executor or standalone native executor. See Teams and Team Execution Environments.

  • Restricted non-admin actions & web terminals.
    Non-administrators can only execute allowed Meerschaum actions through /execute, /jobs, MCP, and the web terminal (no arbitrary host shell escapes). See Permissions.

  • Secrets in files & hardened stack defaults.
    Reference secrets dynamically with MRSM{file:<path>} and MRSM{env:<NAME>}, and pass patches via MRSM_CONFIG_FILE / MRSM_PATCH_FILE. mrsm stack moves API, Grafana, and Valkey credentials out of docker-compose.yaml into owner-only files under <root>/stack/secrets/, sets a Valkey requirepass, and switches Grafana's Meerschaum Main data source to a read-only mrsm__main_ro role. See Stack and Environment.

connectors:
  sql:
    main:
      password: MRSM{file:/run/secrets/pg_password}
  • Immutable sync strategies.
    Mark append-only/immutable pipes with sync.immutable: true and choose a strategy (join, unbounded-simple, or monthly corrective). See Syncing.

  • Native Rust plugin SDK additions (ABI v1 compatible).
    Added parameterized SQL (host::read_sql_with / exec_sql_with with :name and native Postgres array binds), host-managed SQL transactions (host::transaction), host::root_dir(), Pipe::id() / Pipe::is_registered(), and #[method] custom connector methods callable from Python.

  • Time zones in schedules.
    Schedules now accept tz <zone> (local, utc, or IANA name) and restore 4.x timezone abbreviations (EST/EDT, UTC) with clean DST handling:

mrsm sync pipes --schedule "daily starting 21:00 tz America/New_York jitter 5 minutes"
  • Engine hypertables use 7-day chunks and compression.
    Internal engine tables (mrsm_engine_*) now default to 7-day chunks, 7-day TimescaleDB compression, and drop_chunks retention so expired history reclaims disk space immediately.

  • Faster shell startup & incremental plugin manifests.
    Interactive shells and web terminals open immediately from cached manifests and refresh in the background, with per-MRSM_PLUGINS_DIR cache keys.

  • Connect an agent from the Tokens page.
    The Tokens page generates copy-pasteable MCP configuration for Claude Code, Claude Desktop, Codex, OpenCode, and other clients with the new token's API key filled in.

Fixes & Improvements

  • PostgreSQL / SQL sync fixes.
    Added upsert_changed_only to skip rewriting unchanged rows; fixed PostgreSQL array/enum/extension upserts, in-place syncs without PostGIS, NULL-safe comparisons for non-numeric types, and in-place partitioned/hypertable upserts.
  • Python list SQL parameter binds.
    Lists passed to conn.read(query, params={'ids': [1, 2, 3]}) bind as native PostgreSQL arrays (= ANY(:ids)) again rather than jsonb (pass json.dumps(...) for JSON columns).
  • Safer, clearer upgrade meerschaum.
    Prompts upfront before downloading, respects --user / venv / PEP 668 install locations instead of overwriting system site-packages, and warns about shadowed installs.
  • Jobs, prompts, and connection diagnostics.
    Restored interactive attach job prompts, in-process retry_connect() without leaking passwords in process args, clearer test_connection(warn=True) errors, and empty jobs: {} in Compose.
  • Helper subprocess sanitization.
    Editors, SQL clients, pip/uv, cargo, and systemctl no longer inherit MRSM_CONFIG, MRSM_PATCH, or MRSM_<TYPE>_<LABEL> secrets.

5.0.x Releases

Read 5.0.0 – 5.0.2 release notes

5.0.2

  • Performance page selection stability. Late refresh responses no longer reset the selected window or page.
  • DuckDB download retries. First-time DuckDB downloads retry twice on transient HTTP/network failures.
  • Public Dash callback warnings. Startup warns when a @web_page(login_required=False) plugin registers callbacks without public=True.
  • Dependency updates. Updated Arrow to 60.1 (RUSTSEC-2026-0442) and refreshed Rust dependencies.

5.0.1

  • Restart --restart jobs on API startup. Stopped --restart jobs resume automatically when the API starts (manually stopped jobs stay stopped).
  • v4 job command compatibility. Safely reads commands stored in v4 pickle.pkl metadata as data without executing pickle code.
  • Security updates. Updated rustls-webpki, webpki-roots, zstd, ctutils, and raised PyJWT>=2.15.0 for API/Dash extras.

5.0.0

Meerschaum 5 rewrites the core engine, SQL/API/Valkey connectors, CLI, HTTP API, job supervisor, and Compose in Rust while keeping your Pipe definitions, configuration, Python plugins, and existing data compatible. See the migration guide.

  • Dependency-aware Pipelines.
    Register, preview, and run parent-before-child DAGs with run history, retries, late-data backfills, and Compose pipelines: support. See Pipelines.
mrsm register pipelines daily -i sql:local -c sql:local -m daily --parents
mrsm plan pipelines daily -i sql:local
mrsm sync pipelines daily -i sql:local
mrsm show runs -i sql:local
  • Expanded Web Console & Grafana dashboards.
    Added Overview, Pipelines canvas/runbook, Runs Gantt timeline, Engine performance charts, in-browser plugin editor, token/team/lock management, tmux-tabbed web terminal, and rebuilt Syncs + Engine Grafana dashboards. See Web Console.

  • Familiar Python API with Polars default.
    Pipe.sync() still unpacks to (success, message) while exposing .inserted, .updated, and .duration on SyncResult. Base installs have zero heavy dependencies (get_data(as_docs=True)); new roots default to Polars while existing roots keep pandas.

import meerschaum as mrsm

pipe = mrsm.Pipe('plugin:manual', 'readings', instance='sql:local', columns={'id': 'id'})
result = pipe.sync([{'id': 1, 'temperature': 21.5}])
print(result.success, result.inserted, result.duration)
print(pipe.get_data(as_docs=True))
  • Teams, roles, tokens, and Pipe locks.
    Added Viewer/Editor/Operator roles, team-scoped access, revocable scoped tokens, and cross-process Pipe locks. Self-registration now closes after creating the first administrator.

  • Rust plugins and embeddable crates.
    Write single-file .rs or Cargo plugins with the native SDK (meerschaum-plugin), or embed meerschaum-engine directly in Rust apps. See Rust Plugins.

  • Faster, lower-memory syncs and guided Stack upgrades.
    Streamed SQL fetch chunks cut peak RAM nearly in half, column-type caching and native execution speed up small SQL syncs, API shutdown drains cleanly with /healthcheck/ready, and mrsm upgrade/backup/restore postgres guide Stack maintenance.