Skip to content

3.0 pre-release: __private, requeue-stale scope, health lease rule, docs #131

Closed

Description

@CodingAnarchy

Pre-release 3.0 bug hunt, CLI / dashboard / docs. Part of #122.

  1. hammerwork_web::__private re-exports every internal module publicly (hammerwork-web/src/lib.rs:116), undoing 3.0: make cargo-hammerwork and hammerwork-web internals private #88. Gate it behind a non-default test-only feature or move those doctests into unit tests.
  2. job requeue-stale is unscoped with no preview (cargo-hammerwork/src/commands/job.rs:161), and the upgrade guide tells operators to run it. Add --queue and --dry-run.
  3. monitor health / queue health treat Running > 1h as stuck (monitor.rs:334, queue.rs:301,602), contradicting the lease-only rule. Use StaleRunning; report lease-less jobs separately.
  4. hammerwork-web enables metrics without using it (hammerwork-web/Cargo.toml:22). Drop it.
  5. migration status lists table columns rather than applied migrations; show applied/pending migrations (needed to confirm 021).

Docs:

  • docs/upgrading-to-3.0.md: add an ordered "Upgrade order" checklist at the top (stop 1.x workers → Rust 1.94/sqlx 0.9/features → drain 2.x workers, back up, migration run off-peak → maintenance check --fix → start 3.0 workers); move ArchivedJob workflow / EventSubscription drop / WebhookStats / dashboard metrics notes out of "Non-exhaustive structs and enums" into their own sections (dashboard one into the hammerwork-web section); mention the CLI's own azure-kv → azure-kms; note config sections for disabled features (see core issue); fix "so … so" (~400), stray line break (~351).
  • CHANGELOG: move the 3.0: make cargo-hammerwork and hammerwork-web internals private #88 items from Changed to Breaking changes; make issue references consistent links.
  • CLAUDE.md:94 test → test-queue.
  • Stale use cargo_hammerwork::... doc examples in cargo-hammerwork/src/config/mod.rs and utils/{database,display}.rs: remove or text.
  • config/init-mysql.sql (docker-compose): drop the obsolete CREATE TABLE/seed row; let migrations create the schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions